summaryrefslogtreecommitdiff
path: root/lib/chef/provider.rb
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2014-02-19 13:52:58 -0800
committerdanielsdeleo <dan@opscode.com>2014-02-19 13:55:40 -0800
commit4b5b29690eac75f22796ec0a6f78b01f0db0fad6 (patch)
treef5df8bbe11317acf8ecab05a4701788c14f70d8f /lib/chef/provider.rb
parent0f16336630b9e86508ed19874e1f4747f9e7ab40 (diff)
downloadchef-4b5b29690eac75f22796ec0a6f78b01f0db0fad6.tar.gz
Implement required interface for Recipe DSL in Provider
Diffstat (limited to 'lib/chef/provider.rb')
-rw-r--r--lib/chef/provider.rb6
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?