Send notifications after a deploy with Capistrano
Go to file
Guillaume Dott 2d9a354665 Add some informations to the README 2015-05-26 16:45:27 +02:00
lib Bump version to 0.0.2 2015-05-26 15:51:52 +02:00
.gitignore First commit 2015-05-22 11:09:26 +02:00
Gemfile First commit 2015-05-22 11:09:26 +02:00
LICENSE.txt First commit 2015-05-22 11:09:26 +02:00
README.md Add some informations to the README 2015-05-26 16:45:27 +02:00
Rakefile First commit 2015-05-22 11:09:26 +02:00
capistrano-send.gemspec Correct some warnings in gemspec 2015-05-26 15:51:08 +02:00

README.md

Capistrano::Send

This gem provides some notifiers to send notifications after a deploy with Capistrano.

Installation

Add this line to your application's Gemfile:

gem 'capistrano-send'

And then execute:

$ bundle

Usage

Add this line to your Capfile to use all notifiers:

require 'capistrano/send/all'

Email

The mail notifier sends an email with some useful informations about the release.

To use it, you need the mail gem. Add this to your Gemfile:

gem 'mail'

Then add this line to your Capfile:

require 'capistrano/send/mail'

You must configure the From and To fields and can configure the delivery method in your config/deploy.rb:

set :send_mail, to: 'to@example.org', from: 'from@example.org',
  via: :smtp, via_options: {address: 'smtp.example.org'}

This notifier uses the mail gem to send emails. Read its documentation for more delivery methods.

Libnotify

The libnotify notifier uses libnotify to display a notification on your computer.

To use it, add the libnotify gem to your Gemfile:

gem 'libnotify'

Then add this line to your Capfile:

require 'capistrano/send/libnotify'

Notify-send

The notify-send notifier displays a notification on your computer like libnotify but does not require the dependency and uses the notify-send binary.

Add this line to your Capfile:

require 'capistrano/send/notify-send'