Permalink
Browse files

Merge pull request #300 from mattv/output-blank-lines

Don't ignore blank lines in the output
  • Loading branch information...
2 parents af57bf3 + 61eca5a commit 92c190921729e5f18f9aee0bb20ea6baeec18712 @ddollar committed Jan 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/foreman/engine/cli.rb
@@ -54,7 +54,7 @@ def startup
end
def output(name, data)
- data.to_s.chomp.split("\n").each do |message|
+ data.to_s.lines.map(&:chomp).each do |message|
output = ""
output += $stdout.color(@colors[name.split(".").first].to_sym)
output += "#{Time.now.strftime("%H:%M:%S")} #{pad_process_name(name)} | "

0 comments on commit 92c1909

Please sign in to comment.