Class: KapostDeploy::Plugins::NotifyHoneyBadgerAfterPromote

Inherits:
Object
  • Object
show all
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

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.options.fetch(:git_config, {})
  self.ahead_releases = ahead_releases
  self.kernel = kernel
end

Instance Method Details

#afterObject



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