Add some color to your Capistrano scripts
The beauty of ruby makes it simple to add some colorful syntax highlighting to log messages that are displayed in your capistrano scripts. Here’s a chunk of code I added to my utility.rb file that is included by my capfile that performs the magic. def colorize(text, color_code) “#{color_code}#{text}\033[0m" end def red(text); colorize(text, "\033[31m"); end def [...]