Created
August 9, 2012 21:46
-
-
Save schubert/3308317 to your computer and use it in GitHub Desktop.
color hooks for capistrano deployments
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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