class Utils::ProbeServer

def run_job(job)

Parameters:
  • job (Utils::ProcessJob) -- the process job to be executed
def run_job(job)
  output_message " → #{job.inspect} now running.", type: :info
  system(*cmd(job.args))
  message = " → #{job.inspect} was just run"
  if $?.success?
    job.ok = true
    message << " successfully."
    output_message message, type: :success
  else
    job.ok = false
    message << " and failed with exit status #{$?.exitstatus}!"
    output_message message, type: :failure
  end
  @history += [ job.freeze ]
  @history.freeze
  nil
end