]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/postgresql/resources/database.rb
Fix new foodcritic warnings
[chef.git] / cookbooks / postgresql / resources / database.rb
index 1a63f3ac889fa8a6a8e8fba5cfeb26e23998f554..1e8f3972ce57a68893196267494b347c89125a5f 100644 (file)
@@ -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