X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/90a349e0bc558441e65156eabb585c578d93fbfd..18424e9038b5f06d815167da8f0c10bed5d5d211:/cookbooks/postgresql/resources/database.rb diff --git a/cookbooks/postgresql/resources/database.rb b/cookbooks/postgresql/resources/database.rb index 1a63f3ac8..1e8f3972c 100644 --- a/cookbooks/postgresql/resources/database.rb +++ b/cookbooks/postgresql/resources/database.rb @@ -17,6 +17,8 @@ # limitations under the License. # +default_action :create + actions :create, :drop attribute :database, :kind_of => String, :name_attribute => true @@ -25,8 +27,3 @@ attribute :owner, :kind_of => String, :required => true attribute :encoding, :kind_of => String, :default => "UTF8" attribute :collation, :kind_of => String, :default => "en_GB.UTF8" attribute :ctype, :kind_of => String, :default => "en_GB.UTF8" - -def initialize(*args) - super - @action = :create -end