Class: Cheffish::BasicChefClient::BasicChefClientEvents
- Inherits:
-
Chef::EventDispatch::Base
- Object
- Chef::EventDispatch::Base
- Cheffish::BasicChefClient::BasicChefClientEvents
- Defined in:
- lib/cheffish/basic_chef_client.rb
Instance Attribute Summary collapse
-
#updates ⇒ Object
readonly
Returns the value of attribute updates.
Instance Method Summary collapse
-
#initialize ⇒ BasicChefClientEvents
constructor
A new instance of BasicChefClientEvents.
-
#resource_updated(resource, action) ⇒ Object
Called after a resource has been completely converged.
Constructor Details
#initialize ⇒ BasicChefClientEvents
Returns a new instance of BasicChefClientEvents.
89 90 91 |
# File 'lib/cheffish/basic_chef_client.rb', line 89 def initialize @updates = [] end |
Instance Attribute Details
#updates ⇒ Object (readonly)
Returns the value of attribute updates.
93 94 95 |
# File 'lib/cheffish/basic_chef_client.rb', line 93 def updates @updates end |
Instance Method Details
#resource_updated(resource, action) ⇒ Object
Called after a resource has been completely converged.
96 97 98 |
# File 'lib/cheffish/basic_chef_client.rb', line 96 def resource_updated(resource, action) updates << [ resource, action ] end |