https://github.com/mindreframer/slack-cap
Capistrano integration with Slack.com
https://github.com/mindreframer/slack-cap
Last synced: 5 months ago
JSON representation
Capistrano integration with Slack.com
- Host: GitHub
- URL: https://github.com/mindreframer/slack-cap
- Owner: mindreframer
- License: mit
- Created: 2014-09-24T20:56:28.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-24T13:46:47.000Z (over 11 years ago)
- Last Synced: 2025-01-27T12:40:43.545Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 155 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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
1. Fork it ( https://github.com/[my-github-username]/slack-cap/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