Capistrano::Notifications
Send notifications around deploy to teammates(subscribers).
Installation
Add this line to your application's Gemfile:
gem 'capistrano-notifications'
And then execute:
$ bundle
Usage
Slack
in deploy.rb
# deploy.rb
set :notify, -> {
{
to: %w(@scorix #deploy),
via: :slack,
options: {team: 'my-team', token: 'token'}
}
}
in Capfile
# Capfile
require 'capistrano/notifications'
Contributing
- Fork it ( https://github.com/scorix/capistrano-notifications/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request