Skip to content

Instantly share code, notes, and snippets.

@eduardo
Forked from technoweenie/diamonds.capistrano.rb
Created August 17, 2010 08:00
Show Gist options
  • Save eduardo/528874 to your computer and use it in GitHub Desktop.
Save eduardo/528874 to your computer and use it in GitHub Desktop.
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