add slack notifications

This commit is contained in:
João Geonizeli
2021-08-17 10:04:24 -03:00
parent 559b239c02
commit 0b7cdeb236
9 changed files with 68 additions and 10 deletions

View File

@@ -0,0 +1,8 @@
# frozen_string_literal: true
module SlackNotifier
def self.ping(message)
return if ENV["SLACK_WEBHOOK_URL"].blank?
Slack::Notifier.new(ENV["SLACK_WEBHOOK_URL"]).ping(message)
end
end