Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonots/capistrano-colorized-stream
enables watch logs on multiple deploying hosts concurrently with colored hostnames
https://github.com/sonots/capistrano-colorized-stream
Last synced: 2 months ago
JSON representation
enables watch logs on multiple deploying hosts concurrently with colored hostnames
- Host: GitHub
- URL: https://github.com/sonots/capistrano-colorized-stream
- Owner: sonots
- Created: 2013-01-11T09:39:43.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-11-24T06:29:03.000Z (about 11 years ago)
- Last Synced: 2024-10-13T08:08:39.390Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 139 KB
- Stars: 17
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/capistrano/capistrano)'s `stream` method.
With this gem, it enables you to watch logs on multiple deploying hosts concurrently with colored hostnames like [foreman](https://github.com/ddollar/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:
```ruby
require 'capistrano/colorized_stream'server host1, :web
server host2, :webtask :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](https://f.cloud.github.com/assets/2290461/68476/308c50de-5f35-11e2-8f5d-61b1dd62626a.png)
## License
MIT License
## Acknowledgement
Special thanks to [@niku4i](http://orihubon.com/blog/2012/02/09/streaming-log-with-capistrano/).