Capistrano tasks
Add this to your Gemfile:
Gemfile
gem "capi"
require 'capi/unicorn'
For example. Add this to you config/deploy.rb to restart unicorn after deploy:
config/deploy.rb
after "deploy:restart", "unicorn:restart"