Class: Cheffish::ChefRunListener
- Inherits:
-
Chef::EventDispatch::Base
- Object
- Chef::EventDispatch::Base
- Cheffish::ChefRunListener
- Defined in:
- lib/cheffish/chef_run_listener.rb
Instance Attribute Summary collapse
-
#run_context ⇒ Object
readonly
Returns the value of attribute run_context.
Instance Method Summary collapse
-
#initialize(run_context) ⇒ ChefRunListener
constructor
A new instance of ChefRunListener.
- #run_complete(node) ⇒ Object
- #run_failed(exception) ⇒ Object
Constructor Details
#initialize(run_context) ⇒ ChefRunListener
Returns a new instance of ChefRunListener.
5 6 7 |
# File 'lib/cheffish/chef_run_listener.rb', line 5 def initialize(run_context) @run_context = run_context end |
Instance Attribute Details
#run_context ⇒ Object (readonly)
Returns the value of attribute run_context.
9 10 11 |
# File 'lib/cheffish/chef_run_listener.rb', line 9 def run_context @run_context end |
Instance Method Details
#run_complete(node) ⇒ Object
11 12 13 |
# File 'lib/cheffish/chef_run_listener.rb', line 11 def run_complete(node) disconnect end |
#run_failed(exception) ⇒ Object
15 16 17 |
# File 'lib/cheffish/chef_run_listener.rb', line 15 def run_failed(exception) disconnect end |