Browse files

set default provider actions

  • Loading branch information...
1 parent e100ef8 commit 01e7213e5d1299c847011832119956b5789e5013 @xdg xdg committed Jan 13, 2012
View
4 cookbooks/perlbrew/providers/lib.rb
@@ -55,3 +55,7 @@ def load_current_resource
@lib.created(::File.exists?("#{node['perlbrew']['perlbrew_root']}/libs/#{@lib.name}"))
end
+def initialize(*args)
+ super
+ @action = :create
+end
View
4 cookbooks/perlbrew/providers/perl.rb
@@ -49,3 +49,7 @@ def load_current_resource
@perl.installed(::File.exists?("#{node['perlbrew']['perlbrew_root']}/perls/#{@perl.name}"))
end
+def initialize(*args)
+ super
+ @action = :install
+end
View
4 cookbooks/perlbrew/providers/run.rb
@@ -40,3 +40,7 @@
new_resource.updated_by_last_action(true)
end
+def initialize(*args)
+ super
+ @action = :run
+end

0 comments on commit 01e7213

Please sign in to comment.