Class: Cheffish::BasicChefClient::ProviderEventForwarder

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

#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

#providerObject (readonly)

Returns the value of attribute provider.



173
174
175
# File 'lib/cheffish/basic_chef_client.rb', line 173

def provider
  @provider
end

#provider_actionObject (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