class Swarm::TraceParticipant

Public Instance Methods

append_to_hive_trace() click to toggle source
# File lib/swarm/participants/trace_participant.rb, line 23
def append_to_hive_trace
  hive.trace(text)
end
append_to_workitem_trace() click to toggle source
# File lib/swarm/participants/trace_participant.rb, line 17
def append_to_workitem_trace
  traced = workitem["traced"] || []
  traced << text
  expression.workitem = workitem.merge("traced" => traced)
end
text() click to toggle source
# File lib/swarm/participants/trace_participant.rb, line 13
def text
  @text ||= arguments.fetch("text", nil)
end
work() click to toggle source
# File lib/swarm/participants/trace_participant.rb, line 5
def work
  if text
    append_to_workitem_trace
    append_to_hive_trace
  end
  expression.reply
end