/capistrano-slackbot

Slack integration for Capistrano 3

Primary LanguageRubyMIT LicenseMIT

Capistrano::Slackbot Build Status Gem Version

Slack intergation for Capistrano 3.

capistrano-slackbot

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

  1. Fork it ( https://github.com/[my-github-username]/capistrano-slackbot/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request