This gem works with Capistrano v3.0.0 and above and was based off the work on this gem.
Adding this gem to Capistrano extends functionality by pushing notice to dingtalk upon deployment and rollback.
Install it manually:
$ gem install capistrano-dingtalk
Otherwise, add this line to your application's Gemfile:
gem 'capistrano-dingtalk'
And then execute:
$ bundle
Add the following line to your Capfile
.
require "capistrano/dingtalk"
The access token of dingtalk robot.
set :dingtalk_access_token, "xxxxxxxx"
Disable sending notices for a particular stage by setting the following:
set :suppress_dingtalk_notice, "true" # This is set to false by default
You can run the following on it's own assuming you have configured the dingtalk access token.
$ bundle exec cap <stage> deploy:post_dingtalk['deploy']
- Fork it
- 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