]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/postgresql/resources/user.rb
Modernise more LWRPs
[chef.git] / cookbooks / postgresql / resources / user.rb
index f5fefa35aa1a2ab37b2b2963b68a7223c1fad09a..5cbb94d58c6465cc342e7a02d83e33bcc13d1293 100644 (file)
@@ -17,6 +17,8 @@
 # limitations under the License.
 #
 
+default_action :create
+
 actions :create, :drop
 
 attribute :user, :kind_of => String, :name_attribute => true
@@ -26,8 +28,3 @@ attribute :superuser, :default => false
 attribute :createdb, :default => false
 attribute :createrole, :default => false
 attribute :replication, :default => false
-
-def initialize(*args)
-  super
-  @action = :create
-end