mina_slack is a gem that adds tasks for sending notifications to [Slack] (http://slack.com) using [Mina] (http://nadarei.co/mina).
gem install mina_slack
require 'mina_slack/tasks'
...
# Required mina_slack options
set :slack_api_token, 'xxxyyyzzz'
set :slack_channels, ['#general', '@mbajur', '#nerd']
task :deploy do
deploy do
invoke :'slack:notify_deploy_started'
...
to :launch do
...
invoke :'slack:notify_deploy_finished'
end
end
end
slack:notify_deploy_started
slack:notify_deploy_finished
Option | Description |
---|---|
slack_api_token | API auth token. |
slack_channels | Array of channels (or users) where notifications will be sent to. |
slack_username | Name of bot. default: Deploy |
slack_author | Author of a deploy displayed in deploy messages. default: Someone |
slack_link_names | Find and link channel names and usernames. default: 1 |
slack_parse | Change how messages are treated. [Read more] (https://api.slack.com/docs/formatting) default: full |
slack_icon_url | URL to an image to use as the icon for this message default: nil |
slack_icon_emoji | emoji to use as the icon for this message. Overrides slack_icon_url . default: :slack: |
* required options
- Write some tests
Copyright (c) 2014 Mike Bajur https://github.com/mbajur
See LICENSE for further details.