Class: Cheffish::BasicChefClient::ProviderEventForwarder
- Inherits:
-
Chef::EventDispatch::Base
- Object
- Chef::EventDispatch::Base
- Cheffish::BasicChefClient::ProviderEventForwarder
- Defined in:
- lib/cheffish/basic_chef_client.rb
Instance Attribute Summary collapse
-
#provider ⇒ Object
readonly
Returns the value of attribute provider.
-
#provider_action ⇒ Object
readonly
Returns the value of attribute provider_action.
Instance Method Summary collapse
-
#initialize(provider, provider_action) ⇒ ProviderEventForwarder
constructor
A new instance of ProviderEventForwarder.
- #resource_update_applied(resource, action, update) ⇒ Object
Constructor Details
#initialize(provider, provider_action) ⇒ ProviderEventForwarder
Returns a new instance of ProviderEventForwarder.
168 169 170 171 |
# File 'lib/cheffish/basic_chef_client.rb', line 168 def initialize(provider, provider_action) @provider = provider @provider_action = provider_action end |
Instance Attribute Details
#provider ⇒ Object (readonly)
Returns the value of attribute provider.
173 174 175 |
# File 'lib/cheffish/basic_chef_client.rb', line 173 def provider @provider end |
#provider_action ⇒ Object (readonly)
Returns the value of attribute provider_action.
174 175 176 |
# File 'lib/cheffish/basic_chef_client.rb', line 174 def provider_action @provider_action end |
Instance Method Details
#resource_update_applied(resource, action, update) ⇒ Object
176 177 178 |
# File 'lib/cheffish/basic_chef_client.rb', line 176 def resource_update_applied(resource, action, update) provider.run_context.events.resource_update_applied(provider.new_resource, provider_action, update) end |