lib/irrc/runner.rb in irrc-0.2.1 vs lib/irrc/runner.rb in irrc-0.2.2
- old
+ new
@@ -49,10 +49,14 @@
def execute(command)
return if command.nil? || command == ''
logger.debug %(Executing "#{command}")
- connection.cmd(command).tap {|result| logger.debug %(Got "#{result}") }
+
+ result = connection.cmd(command)
+ logger.debug %(Got "#{result}")
+
+ result.gsub(/#.*$/, '') # Trim comments
end
def last_thread_of?(num_threads)
return @queue.num_waiting == num_threads - 1
end