Skip to content

Instantly share code, notes, and snippets.

@schubert
Created August 9, 2012 21:46
Show Gist options
  • Save schubert/3308317 to your computer and use it in GitHub Desktop.
Save schubert/3308317 to your computer and use it in GitHub Desktop.
color hooks for capistrano deployments
namespace :deploy do
reset = "\033[0m"
success = "\033[32m" # Green
failure = "\033[31m" # Bright Red
task :completed do
puts "#{success}"
puts "*" * 40
puts "SUCCESS"
puts "*" * 40
puts reset
end
task :failed do
puts "#{failure}"
puts "!" * 40
puts "FAILURE"
puts "!" * 40
puts reset
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment