Module: ChefMetal::ProviderActionHandler
- Included in:
- Chef::Provider::Machine
- Defined in:
- lib/chef_metal/provider_action_handler.rb
Instance Method Summary collapse
- #debug_name ⇒ Object
- #perform_action(description, &block) ⇒ Object
-
#recipe_context ⇒ Object
Implementation of ActionHandler interface.
- #updated! ⇒ Object
Instance Method Details
#debug_name ⇒ Object
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_context ⇒ Object
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 |