Mina tasks for interacting with Rollbar.
Adds the following tasks:
rollbar:notify
Add this line to your application's Gemfile:
gem 'mina-rollbar', require: false
And then execute:
$ bundle
Note: Currently requires curl
to be present on the server for notifications to be sent. Patches happily accepted to improve this limitation!
require 'mina/rollbar'
...
# replace value w/your real access token
set :rollbar_access_token, '9a18d718214b4348822b7cec493f86d2'
task deploy: :environment do
deploy do
...
to :launch do
...
invoke :'rollbar:notify'
end
end
end
Name | Description |
---|---|
rollbar_access_token |
Rollbar access token (post_server_item token) |
rollbar_username |
Rollbar username of deploying user (optional) |
rollbar_local_username |
Local username of deploying user (optional) |
rollbar_comment |
Comment for this deployment (optional) |
rollbar_notification_debug |
true to enable notification debugging info |
rollbar_environment |
Deployment environment string, defaults to rails_env |
- Fork it ( https://github.com/code-lever/mina-rollbar/fork )
- 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