Created
August 13, 2010 19:02
-
-
Save technoweenie/523370 to your computer and use it in GitHub Desktop.
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
task :finish do | |
next if ENV['NOCAMPFIRE'] | |
require "#{rails_root}/lib/campfire" | |
branch_name = branch.split('/', 2).last | |
msg = "#{deploying_user}'s #{rails_env} deployment of #{branch_name} is done!" | |
if rand > 0.7 | |
msg.sub! /done\!$/, 'NOW DIAMONDS!' | |
end | |
Campfire.notify msg | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes!