Slack::Cap
Hooks before / after deploy tasks and notifies Slack about the deployment start and finish.
The output looks like this:
Jon Doe / MyAwesomeApp's master / production - started - fixing that nasty bug...
Jon Doe / MyAwesomeApp's master / production - finished - 31 seconds.
Installation
# In Gemfile:
gem 'slack-cap'
# then run:
$ bundle
Usage
# in your Capfile
require 'slack-cap'
# in your config/deploy.rb
set :slack_app, 'MyAwesomeApp'
set :slack_team, 'my-subdomain-on-slack.com'
set :slack_token, 'XXXXXXXXXXXX'
set :slack_channel, '#deployments'
# optional param, defaults to 'capistrano'
set :slack_username, 'capistrano'
# deployment
$ MSG='fixing that nasty bug...' cap production deploy
Alternatives
- https://github.com/supremegolf/slackistrano (looks very flexible)
- https://github.com/j-mcnally/capistrano-slack (not very clean code, though...)
Contributing
- Fork it ( https://github.com/[my-github-username]/slack-cap/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