lib/invoker/command_worker.rb in invoker-0.1.2 vs lib/invoker/command_worker.rb in invoker-1.0.0

- old
+ new

@@ -1,9 +1,9 @@ module Invoker class CommandWorker attr_accessor :command_label, :pipe_end, :pid, :color - + def initialize(command_label, pipe_end, pid, color) @command_label = command_label @pipe_end = pipe_end @pid = pid @color = color @@ -22,10 +22,10 @@ Invoker::Logger.print(".") end # Print the lines received over the network def receive_line(line) - Invoker::Logger.puts "#{@command_label.send(color)} : #{line}" + Invoker::Logger.puts "#{@command_label.color(color)} : #{line}" end def to_h {:command_label => command_label, :pid => pid.to_s} end