Skip to content
rollbar tasks for tomo
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
lib/tomo/plugin
test
.gitignore
.prettierignore
.rubocop.yml
.travis.yml
CHANGELOG.md
CODE_OF_CONDUCT.md
Gemfile
LICENSE.txt
README.md
Rakefile
tomo-plugin-rollbar.gemspec

README.md

tomo-plugin-rollbar

Gem Version Travis Code Climate

This is a tomo plugin that sends a notification to Rollbar on a successful deploy.

Installation

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.

Settings

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

Tasks

rollbar:notify_deploy

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.

Contributing

Bug reports and pull requests are welcome.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

You can’t perform that action at this time.