class CfScript::Executor::Recorder

Attributes

executions[R]

Public Class Methods

new(executor = nil) click to toggle source
# File lib/cf_script/executor/recorder.rb, line 4
def initialize(executor = nil)
  @executions = []
  @executor   = executor || CfScript.config.runtime.executor
end

Public Instance Methods

dump() click to toggle source
# File lib/cf_script/executor/recorder.rb, line 15
def dump
  puts @executions.join("\n")
end
execute(env, command_line) click to toggle source
# File lib/cf_script/executor/recorder.rb, line 9
def execute(env, command_line)
  @executions << command_line

  @executor.execute(env, command_line)
end