Permalink
Browse files

fixed default actions; I had put them in the wrong place

  • Loading branch information...
1 parent 01e7213 commit 2dc49c974bab3ee86c0501296008b388a33b93d3 @xdg xdg committed Jan 13, 2012
@@ -54,8 +54,3 @@ def load_current_resource
@lib = Chef::Resource::PerlbrewLib.new(new_resource.name)
@lib.created(::File.exists?("#{node['perlbrew']['perlbrew_root']}/libs/#{@lib.name}"))
end
-
-def initialize(*args)
- super
- @action = :create
-end
@@ -48,8 +48,3 @@ def load_current_resource
@perl = Chef::Resource::PerlbrewPerl.new(new_resource.name)
@perl.installed(::File.exists?("#{node['perlbrew']['perlbrew_root']}/perls/#{@perl.name}"))
end
-
-def initialize(*args)
- super
- @action = :install
-end
@@ -39,8 +39,3 @@
end
new_resource.updated_by_last_action(true)
end
-
-def initialize(*args)
- super
- @action = :run
-end
@@ -21,3 +21,8 @@
actions :create, :delete
attribute :created, :default => false
+
+def initialize(*args)
+ super
+ @action = :create
+end
@@ -23,3 +23,8 @@
attribute :version, :kind_of => String
attribute :install_options, :kind_of => String
attribute :installed, :default => false
+
+def initialize(*args)
+ super
+ @action = :install
+end
@@ -29,3 +29,8 @@ def initialize(*args)
attribute :perlbrew, :kind_of => String, :required => true
attribute :cwd, :kind_of => String
attribute :environment, :kind_of => Hash, :default => {}
+
+def initialize(*args)
+ super
+ @action = :run
+end

0 comments on commit 2dc49c9

Please sign in to comment.