summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-08-05 16:59:23 -0700
committerTim Smith <tsmith84@gmail.com>2020-08-05 16:59:23 -0700
commit0439e7c7397342da5341ab38458917014d06f1ff (patch)
treeb8b544fbb42fc980fc1bf43de8519d49fd44c64b /lib/chef
parent46fb8800fb67506f52cdcdb3f7d6f8fae480cffe (diff)
downloadchef-0439e7c7397342da5341ab38458917014d06f1ff.tar.gz
Combine attr_reader / attr_writer into attr_accessorattr
Resolves Style/BisectedAttrAccessor Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/run_status.rb8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/chef/run_status.rb b/lib/chef/run_status.rb
index f5bc1837d7..6e7c83ff48 100644
--- a/lib/chef/run_status.rb
+++ b/lib/chef/run_status.rb
@@ -25,17 +25,13 @@ class Chef::RunStatus
attr_reader :events
- attr_reader :run_context
-
- attr_writer :run_context
+ attr_accessor :run_context
attr_reader :start_time
attr_reader :end_time
- attr_reader :exception
-
- attr_writer :exception
+ attr_accessor :exception
attr_accessor :run_id