summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2019-03-15 12:35:29 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2019-03-15 12:35:29 -0700
commit06b1d8ad5edee305fb7e5288aed39b6f74616b5c (patch)
treedd248943f7e6c1277d12038f8f67108e8f21acbf
parent1cb075fc2bfdaf690bab9901434071b83da4d911 (diff)
downloadchef-06b1d8ad5edee305fb7e5288aed39b6f74616b5c.tar.gz
make the run_context a proper instance variable
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--lib/chef/client.rb9
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