lib/vault-tools.rb in vault-tools-0.5.18 vs lib/vault-tools.rb in vault-tools-0.5.19

- old
+ new

@@ -2,14 +2,15 @@ require 'sinatra/base' require 'scrolls' require 'rack/ssl-enforcer' require 'heroku-api' -require 'honeybadger' +require 'rollbar' -Honeybadger.configure do |config| - config.api_key = ENV['HONEYBADGER_API_KEY'] +Rollbar.configure do |config| + config.environment = ENV['RACK_ENV'] || ENV['RAILS_ENV'] || ENV['APP_ENV'] || ENV['ROLLBAR_ENV'] || 'unassigned' + config.access_token = ENV['ROLLBAR_ACCESS_TOKEN'] end # Yes, there's a lot of stuff on STDERR. But its on # stderr and not stdout so you can pipe to /dev/null if # you hate it. These methods do some pretty heavy-handed @@ -81,5 +82,6 @@ require 'vault-tools/pipeline' require 'vault-tools/text_processor' require 'vault-tools/time' require 'vault-tools/s3' require 'vault-tools/statement_store' +require 'vault-tools/rollbar_helper'