Capistrano Growl notifications
, Chicago
It’s very easy to lose track of your deployment. A cap deploy and we’re on to other things. Time passes, our deploy failed, and we’ve forgotten all about it! Time to address that.
Global cap configuration
Rake has Sake and ~/.rake/*.rakefiles; Capistrano has ~/.caprc. C’mon, cap’n’, let’s get modular!
From now on, when we save a Ruby script into our ~/.recipes/ directory, its tasks will be available to Capistrano wherever cap is invoked.
Growling
For Growl to play nicely with Ruby, we’ll need Leopard’s standard Ruby installation or equivalent—with RubyGems, RubyCocoa: the works.
Wait…some of you don’t have Growl? Well get it; install it; love it. If you’re just downloading it now, be sure to install growlnotify alongside it.
An alternative to growlnotify is Meow, a delightful little gem. It makes growling with Ruby quite effortless:
sudo gem install meow
All that’s left is our little Capfile:
Next time your deploy wraps up, you’ll know about it.
Oh, and if it doesn’t go over so well, you’ll know about it.