Capistrano Colorized Stream

testing ruby: 1.9.3; Capistrano: > 2.0

About capistrano-colorized-stream

capistrano-colorized-stream adds a feature to append colorized hostnames at the head of each line for the capistrano's stream method.

With this gem, it enables you to watch logs on multiple deploying hosts concurrently with colored hostnames like foreman, for example.

USAGE

For example, to stream log files located on multiple hosts, use the extended stream method at config/deploy.rb as

require 'capistrano/colorized_stream'

task :syslog do
  stream "tail -f /var/log/syslog"
end

Acknowledgement

Special thanks to @niku4i.