Slack intergation for Capistrano 3.
Installation
Add this line to your application's Gemfile:
gem "capistrano-slackbot"
And then execute:
$ bundle
Usage
Add capistrano/slackbot to your Capfile:
# Capfile
require "capistrano/slackbot"
Then add some configuation options to your deploy.rb:
# deploy.rb
set :slack_webhook_url, ENV["SLACK_WEBHOOK"] # from your "Incoming Webhook" integration
set :slack_options, { channel: "#general", icon_emoji: ":shipit:" } # arbitrary additional options passed to slack
And deploy away!
Contributing
- Fork it ( https://github.com/[my-github-username]/capistrano-slackbot/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