class Itamae::Resource::Execute

Public Instance Methods

action_run(options) click to toggle source
# File lib/itamae/resource/execute.rb, line 20
def action_run(options)
  run_command(attributes.command)
  updated!
end
pre_action() click to toggle source
# File lib/itamae/resource/execute.rb, line 9
def pre_action
  case @current_action
  when :run
    attributes.executed = true
  end
end
set_current_attributes() click to toggle source
# File lib/itamae/resource/execute.rb, line 16
def set_current_attributes
  current.executed = false
end