diff options
author | Igor Shpakov <igorshp@gmail.com> | 2015-04-11 16:43:04 +0100 |
---|---|---|
committer | Igor Shpakov <igorshp@gmail.com> | 2015-04-11 16:43:04 +0100 |
commit | 25dba2da5c910c15a7965add9be48257a0ef838a (patch) | |
tree | c97d0e14e9093dee09b56066f5e39ee36b87a82e /lib/chef/run_status.rb | |
parent | 874b785abc912e852b401e8c0f0e687394a6f3b8 (diff) | |
download | chef-25dba2da5c910c15a7965add9be48257a0ef838a.tar.gz |
do not overwrite whole @run_status in #build_node
Diffstat (limited to 'lib/chef/run_status.rb')
-rw-r--r-- | lib/chef/run_status.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/chef/run_status.rb b/lib/chef/run_status.rb index 0f181426b0..d4ed1620ca 100644 --- a/lib/chef/run_status.rb +++ b/lib/chef/run_status.rb @@ -23,7 +23,7 @@ # Chef run. class Chef::RunStatus - attr_reader :events + attr_accessor :events attr_reader :run_context @@ -39,15 +39,13 @@ class Chef::RunStatus attr_accessor :run_id + attr_accessor :node + def initialize(node, events) @node = node @events = events end - def node - @node - end - # sets +start_time+ to the current time. def start_clock @start_time = Time.now |