class Utils::ProbeServer::Job

def initialize(probe_server, args)

def initialize(probe_server, args)
  @id           = probe_server.next_job_id
  @args         = Array(args)
end

def inspect

def inspect
  ok_colorize("#{id} #{args.map { |a| a.include?(' ') ? a.inspect : a } * ' '}")
end

def ok

def ok
  case @ok
  when false then 'n'
  when true  then 'y'
  else            '…'
  end
end

def ok_colorize(string)

def ok_colorize(string)
  case @ok
  when false then string.white.on_red
  when true  then string.black.on_green
  else            string
  end
end