Skip to content

Instantly share code, notes, and snippets.

@PatrickTulskie
Forked from jmazzi/rollout.rb
Created May 27, 2010 14:46
Show Gist options
  • Save PatrickTulskie/415880 to your computer and use it in GitHub Desktop.
Save PatrickTulskie/415880 to your computer and use it in GitHub Desktop.
before "deploy", :start_serenading
after "deploy", :stop_serenading
desc "Start serenading"
task :start_serenading do
fork {`afplay '/path/to/rollout.mp3'`} rescue nil
end
desc "Stop serenading"
task :stop_serenading do
system("killall -TERM afplay 2>/dev/null") rescue nil
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment