diff options
author | danielsdeleo <dan@opscode.com> | 2014-02-19 13:52:58 -0800 |
---|---|---|
committer | danielsdeleo <dan@opscode.com> | 2014-02-19 13:55:40 -0800 |
commit | 4b5b29690eac75f22796ec0a6f78b01f0db0fad6 (patch) | |
tree | f5df8bbe11317acf8ecab05a4701788c14f70d8f /lib/chef/provider.rb | |
parent | 0f16336630b9e86508ed19874e1f4747f9e7ab40 (diff) | |
download | chef-4b5b29690eac75f22796ec0a6f78b01f0db0fad6.tar.gz |
Implement required interface for Recipe DSL in Provider
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r-- | lib/chef/provider.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/chef/provider.rb b/lib/chef/provider.rb index 3fb86d72c0..152a067f03 100644 --- a/lib/chef/provider.rb +++ b/lib/chef/provider.rb @@ -31,6 +31,9 @@ class Chef attr_accessor :current_resource attr_accessor :run_context + attr_reader :recipe_name + attr_reader :cookbook_name + #-- # TODO: this should be a reader, and the action should be passed in the # constructor; however, many/most subclasses override the constructor so @@ -44,6 +47,9 @@ class Chef @current_resource = nil @run_context = run_context @converge_actions = nil + + @recipe_name = nil + @cookbook_name = nil end def whyrun_mode? |