Capistrano + Notification Center
capistrano-nc integrates Capistrano and OS X Notification Center.
Installation
for Capistrano 3.x
# Gemfile
gem 'capistrano-nc', '~> 0.2'
# Capfile
require 'capistrano-nc/nc'
for Capistrano 2.x
# Gemfile
gem "capistrano-nc", "0.0.2"
# config/deploy.rb
require "capistrano-nc"
By default it will run the nc:finished
task after your deploy
or deploy:migrations
. If this behavior doesn't suit you, you can hook nc:finished
to any custom task by editing deploy.rb
:
after `your:task`, `nc:finished`
Terminal.app is opened when the notification is clicked. To use an alternative terminal set :nc_terminal
to the bundle identifier e.g. set :nc_terminal, 'com.googlecode.iterm2'
for iTerm2.