Skip to content

enables watch logs on multiple deploying hosts concurrently with colored hostnames

Notifications You must be signed in to change notification settings

sonots/capistrano-colorized-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 /var/log/syslog files located on multiple hosts, use the extended stream method at config/deploy.rb as:

require 'capistrano/colorized_stream'

server host1, :web
server host2, :web

task :syslog, :roles => :web do
  stream "tail -f /var/log/syslog"
end

Then, execute the defined capistrano task

$ bundle exec cap syslog

Below is an example of results.

capistrano-colorized-stream.png

License

MIT License

Acknowledgement

Special thanks to @niku4i.

About

enables watch logs on multiple deploying hosts concurrently with colored hostnames

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages