Class: Cheffish::BasicChefClient::BasicChefClientEvents

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBasicChefClientEvents

Returns a new instance of BasicChefClientEvents.



73
74
75
# File 'lib/cheffish/basic_chef_client.rb', line 73

def initialize
  @updates = []
end

Instance Attribute Details

#updatesObject (readonly)

Returns the value of attribute updates.



77
78
79
# File 'lib/cheffish/basic_chef_client.rb', line 77

def updates
  @updates
end

Instance Method Details

#resource_updated(resource, action) ⇒ Object

Called after a resource has been completely converged.



80
81
82
# File 'lib/cheffish/basic_chef_client.rb', line 80

def resource_updated(resource, action)
  updates << [ resource, action ]
end