class Chef::Provisioning::ActionHandlerForward
Attributes
action_handler[R]
Public Class Methods
new(action_handler)
click to toggle source
# File lib/chef/provisioning.rb, line 16 def initialize(action_handler) @action_handler = action_handler end
Public Instance Methods
resource_update_applied(resource, action, update)
click to toggle source
# File lib/chef/provisioning.rb, line 22 def resource_update_applied(resource, action, update) prefix = action_handler.should_perform_actions ? "" : "Would " update = Array(update).flatten.map { |u| "#{prefix}#{u}"} action_handler.performed_action(update) end