Module: MiniTest::Chef::Context
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#run_context ⇒ Object
readonly
Returns the value of attribute run_context.
-
#run_status ⇒ Object
readonly
Returns the value of attribute run_status.
Instance Method Summary collapse
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
4 5 6 |
# File 'lib/minitest-chef-handler/context.rb', line 4 def node @node end |
#run_context ⇒ Object (readonly)
Returns the value of attribute run_context.
4 5 6 |
# File 'lib/minitest-chef-handler/context.rb', line 4 def run_context @run_context end |
#run_status ⇒ Object (readonly)
Returns the value of attribute run_status.
4 5 6 |
# File 'lib/minitest-chef-handler/context.rb', line 4 def run_status @run_status end |
Instance Method Details
#run(runner) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/minitest-chef-handler/context.rb', line 6 def run(runner) if runner.respond_to?(:run_status) @run_status = runner.run_status @node = @run_status.node @run_context = @run_status.run_context end super(runner) end |