Class: Cheffish::ChefRunListener

Inherits:
Chef::EventDispatch::Base
  • Object
show all
Defined in:
lib/cheffish/chef_run_listener.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_contextObject (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