Class: KapostDeploy::Plugins::NotifyHoneyBadgerAfterPromote
- Inherits:
-
Object
- Object
- KapostDeploy::Plugins::NotifyHoneyBadgerAfterPromote
- Defined in:
- lib/kapost_deploy/plugins/notify_honeybadger_after_promote.rb
Overview
After-promotion plugin to notify honeybadger after a promotion is complete. Honeybadger.io can be configured to clear all honeybadgers upon this deploy notification.
Instance Method Summary collapse
- #after ⇒ Object
-
#initialize(config, ahead_releases: KapostDeploy::Heroku::AppReleases.new(config.app, token: config.heroku_api_token), kernel: Kernel) ⇒ NotifyHoneyBadgerAfterPromote
constructor
A new instance of NotifyHoneyBadgerAfterPromote.
Constructor Details
#initialize(config, ahead_releases: KapostDeploy::Heroku::AppReleases.new(config.app, token: config.heroku_api_token), kernel: Kernel) ⇒ NotifyHoneyBadgerAfterPromote
Returns a new instance of NotifyHoneyBadgerAfterPromote.
10 11 12 13 14 15 16 17 18 |
# File 'lib/kapost_deploy/plugins/notify_honeybadger_after_promote.rb', line 10 def initialize(config, ahead_releases: KapostDeploy::Heroku::AppReleases.new(config.app, token: config.heroku_api_token), kernel: Kernel) self.config = config self.git_config = config..fetch(:git_config, {}) self.ahead_releases = ahead_releases self.kernel = kernel end |
Instance Method Details
#after ⇒ Object
20 21 22 23 24 |
# File 'lib/kapost_deploy/plugins/notify_honeybadger_after_promote.rb', line 20 def after return unless configured? notify_honeybadger end |