Sha256: 75fec38b080f878c19ca1dcb954e68000af2568d8da484f8681fa472d237eaf3
Contents?: true
Size: 1.94 KB
Versions: 1
Compression:
Stored size: 1.94 KB
Contents
# Slackistrano [![Gem Version](https://badge.fury.io/rb/slackistrano.png)](http://badge.fury.io/rb/slackistrano) [![Code Climate](https://codeclimate.com/github/supremegolf/slackistrano.png)](https://codeclimate.com/github/supremegolf/slackistrano) [![Build Status](https://travis-ci.org/supremegolf/slackistrano.png?branch=master)](https://travis-ci.org/supremegolf/slackistrano) Send notifications to [Slack](https://slack.com) about [Capistrano](http://www.capistranorb.com) deployments. If you need Capistrano v2 support, check out [capistrano-slack](https://github.com/j-mcnally/capistrano-slack). ## Requirements - Capistrano >= 3 - Ruby >= 1.9 - A Slack account ## Installation Add this line to your application's Gemfile: gem 'slackistrano', require: false And then execute: $ bundle ## Configuration Set up an "Incoming WebHooks" integration in Slack. Make a note of the token as you'll need it later. Require the library in your application's Capfile: require 'slackistrano' Set your team and token in your application's config/deploy.rb: set :slack_team, "supremegolf" set :slack_token, "xxxxxxxxxxxxxxxxxxxxxxxx" Optionally, override the other slack settings: set :slack_icon_url, ->{ "http://gravatar.com/avatar/885e1c523b7975c4003de162d8ee8fee?r=g&s=40" } set :slack_channel, ->{ "#general" } set :slack_username, ->{ "Slackistrano" } Test your setup by running: $ cap production slack:deploy:starting $ cap production slack:deploy:finished ## Usage Deploy your application like normal and you should see messages in the channel you specified. ## TODO - Add tests. - Notify about incorrect configuration settings. - Notify about unsuccessfull HTTP POSTs. ## Contributing 1. Fork it 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 new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
slackistrano-0.0.4 | README.md |