Module: RatDeployer::Notifier

Defined in:
lib/rat_deployer/notifier.rb

Class Method Summary collapse

Class Method Details

.notify(msg) ⇒ Object



17
18
19
20
21
# File 'lib/rat_deployer/notifier.rb', line 17

def self.notify(msg)
  return unless webhook_url
  return unless webhook_url
  self.slack_notifier.ping msg
end

.notify_deploy_endObject



12
13
14
15
# File 'lib/rat_deployer/notifier.rb', line 12

def self.notify_deploy_end
  return unless webhook_url
  notify_deploy "Ended deploy on #{ENV.fetch('RAT_ENV')}"
end

.notify_deploy_startObject



7
8
9
10
# File 'lib/rat_deployer/notifier.rb', line 7

def self.notify_deploy_start
  return unless webhook_url
  notify_deploy "Starting deploy on #{ENV.fetch('RAT_ENV')}"
end