class DakeProtocol::Ruby

Constants

EXT_NAME

Public Instance Methods

execute_step(log=false) click to toggle source
# File lib/dake/protocol.rb, line 102
def execute_step(log=false)
  file = create_script
  if log
    ret = system(@step.context, "ruby #{file.path} " +
                 "2> #{@script_stderr} 1> #{@script_stdout}", :chdir=>@step.context['BASE'])
  else
    ret = system(@step.context, "ruby #{file.path}", :chdir=>@step.context['BASE'])
  end
  unless ret
    line, column = @analyzer.step_line_and_column @step
    raise "Step(#{@step.object_id}) defined in #{@step.src_file} at #{line}:#{column} failed."
  end
end