diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/client.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/chef/client.rb b/lib/chef/client.rb index 57ef0ac4d3..103a516111 100644 --- a/lib/chef/client.rb +++ b/lib/chef/client.rb @@ -72,6 +72,13 @@ class Chef attr_reader :run_status # + # The run context of the Chef run. + # + # @return [Chef::RunContext] + # + attr_reader :run_context + + # # The node represented by this client. # # @return [Chef::Node] @@ -227,7 +234,7 @@ class Chef run_status.run_id = request_id = Chef::RequestID.instance.request_id - run_context = Chef::RunContext.new + @run_context = Chef::RunContext.new run_context.events = events run_status.run_context = run_context |