class Chef::Provisioning::AddPrefixActionHandler

Attributes

action_handler[R]
locally_updated[R]
prefix[R]

Public Class Methods

new(action_handler, prefix) click to toggle source
# File lib/chef/provisioning/add_prefix_action_handler.rb, line 8
def initialize(action_handler, prefix)
  @action_handler = action_handler
  @prefix = prefix
end

Public Instance Methods

perform_action(description, &block) click to toggle source
# File lib/chef/provisioning/add_prefix_action_handler.rb, line 29
def perform_action(description, &block)
  @locally_updated = true
  action_handler.perform_action(Array(description).flatten.map { |d| "#{prefix}#{d}" }, &block)
end
performed_action(description) click to toggle source
# File lib/chef/provisioning/add_prefix_action_handler.rb, line 24
def performed_action(description)
  @locally_updated = true
  action_handler.performed_action(Array(description).flatten.map { |d| "#{prefix}#{d}" })
end
report_progress(description) click to toggle source
# File lib/chef/provisioning/add_prefix_action_handler.rb, line 19
def report_progress(description)
  @locally_updated = true
  action_handler.report_progress(Array(description).flatten.map { |d| "#{prefix}#{d}" })
end