Class: Tomo::Plugin::Rollbar::Tasks
- Inherits:
-
TaskLibrary
- Object
- TaskLibrary
- Tomo::Plugin::Rollbar::Tasks
- Defined in:
- lib/tomo/plugin/rollbar/tasks.rb
Instance Method Summary collapse
Instance Method Details
#notify_deploy ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/tomo/plugin/rollbar/tasks.rb', line 7 def notify_deploy require_settings :rollbar_env, :rollbar_token http_post( "https://api.rollbar.com/api/1/deploy/", local_username: remote.release[:deploy_user], access_token: settings.fetch(:rollbar_token), environment: settings.fetch(:rollbar_env), revision: remote.release[:revision] ) logger.info("Rollbar notification complete.") end |