X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/dde08aa5cf12c06dfe7e1298a5367b1a20686aea..5b4f815f6cd8433be1d66b8376b71452f974b225:/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