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(node) ⇒ ChefRunListener

Returns a new instance of ChefRunListener.



5
6
7
# File 'lib/cheffish/chef_run_listener.rb', line 5

def initialize(node)
  @node = node
end

Instance Attribute Details

#nodeObject (readonly)

Returns the value of attribute node.



9
10
11
# File 'lib/cheffish/chef_run_listener.rb', line 9

def node
  @node
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