lib/invoker/command_worker.rb in invoker-0.0.3 vs lib/invoker/command_worker.rb in invoker-0.1.1.pre
- old
+ new
@@ -17,14 +17,18 @@
receive_line($1)
end
end
def unbind
- # $stdout.print(".")
+ Invoker::Logger.print(".")
end
# Print the lines received over the network
def receive_line(line)
- $stdout.puts "#{@command_label.send(color)} : #{line}"
+ Invoker::Logger.puts "#{@command_label.send(color)} : #{line}"
+ end
+
+ def to_h
+ {:command_label => command_label, :pid => pid.to_s}
end
end
end