Created
May 31, 2011 13:45
-
-
Save unimatrixZxero/1000521 to your computer and use it in GitHub Desktop.
Play a song when you deploy with capistrano
This file contains 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 | |
before 'deploy' do | |
# run deploy song if available and mpg321 is installed | |
system('[ -e deploy.mp3 ] && type mpg321 &>/dev/null && mpg321 deploy.mp3 &') | |
end unless ENV['MUSIC_OFF'] | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment