module RRRSpec::Server::JSONConstructor::WorkerLogJSONConstructor

Public Instance Methods

as_full_json() click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 138
def as_full_json
  as_json(except: [:id, :taskset_id, :worker_key],
          include: { 'taskset' => { only: :key } },
          methods: [:worker, :log])
end
as_json_for_result_page() click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 148
def as_json_for_result_page
  {
    'id' => id,
    'worker_name' => worker_key,
    'started_at' => started_at,
    'rsync_finished_at' => rsync_finished_at,
    'setup_finished_at' => setup_finished_at,
    'rspec_finished_at' => finished_at,
    'log' => log.to_s,
  }
end
as_short_json() click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 134
def as_short_json
  as_full_json
end
worker() click to toggle source
# File lib/rrrspec/server/json_constructor.rb, line 144
def worker
  { 'key' => worker_key }
end