Module: ChefMetal::ProviderActionHandler

Included in:
Chef::Provider::Machine
Defined in:
lib/chef_metal/provider_action_handler.rb

Instance Method Summary collapse

Instance Method Details

#debug_nameObject



37
38
39
# File 'lib/chef_metal/provider_action_handler.rb', line 37

def debug_name
  self.cookbook_name
end

#perform_action(description, &block) ⇒ Object



33
34
35
# File 'lib/chef_metal/provider_action_handler.rb', line 33

def perform_action(description, &block)
  self.converge_by(description, &block)
end

#recipe_contextObject

Implementation of ActionHandler interface



25
26
27
# File 'lib/chef_metal/provider_action_handler.rb', line 25

def recipe_context
  self.run_context
end

#updated!Object



29
30
31
# File 'lib/chef_metal/provider_action_handler.rb', line 29

def updated!
  self.new_resource.updated_by_last_action(true)
end