This is a tomo plugin that sends a notification to Rollbar on a successful deploy.
Run:
$ gem install tomo-plugin-rollbar
Or add it to your Gemfile:
gem "tomo-plugin-rollbar"
Then add the following to .tomo/config.rb
:
plugin "rollbar"
set rollbar_env: "production"
set rollbar_token: "YOUR_TOKEN_HERE"
deploy do
# ...
# Place this task at *end* of the deploy
run "rollbar:notify_deploy"
end
If you are not comfortable storing the rollbar_token
in the configuration file, you can alternatively provide it via a TOMO_ROLLBAR_TOKEN
environment variable.
Name | Purpose | Default |
---|---|---|
rollbar_env |
The environment being deployed, e.g. "production". | nil |
rollbar_token |
The Rollbar post_server_item project access token that will be used to post the notification. |
nil |
Sends an HTTP POST notification to the Rollbar API describing the release that was successfully deployed. This includes the user who performed the deploy, the environment, the git revision.
Note that this task must run after git:create_release
in the deploy sequence in order to have access to the release information.
If you want to report a bug, or have ideas, feedback or questions about the gem, let me know via GitHub issues and I will do my best to provide a helpful answer. Happy hacking!
The gem is available as open source under the terms of the MIT License.
Everyone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
Pull requests are welcome!