Skip to content

Instantly share code, notes, and snippets.

@jmazzi
Created May 20, 2010 21:46
Show Gist options
  • Save jmazzi/408149 to your computer and use it in GitHub Desktop.
Save jmazzi/408149 to your computer and use it in GitHub Desktop.
namespace :deploy do
task :default do
start_serenading
transaction do
# ....
end
stop_serenading
end
end
desc "Start serenading"
task :start_serenading do
fork {`afplay '/path/to/rollout.mp3'`}
end
desc "Stop serenading"
task :stop_serenading do
system("killall -TERM afplay 2>/dev/null")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment