Class: Encryptbot::Slack
- Inherits:
-
Object
- Object
- Encryptbot::Slack
- Defined in:
- lib/encryptbot/slack.rb
Class Method Summary collapse
Class Method Details
.notifier ⇒ Object
10 11 12 |
# File 'lib/encryptbot/slack.rb', line 10 def self.notifier @notifier ||= Slack::Notifier.new Encryptbot.configuration.slack_webhook, username: Encryptbot.configuration.slack_bot_username end |
.post_message(message) ⇒ Object
4 5 6 7 8 |
# File 'lib/encryptbot/slack.rb', line 4 def self.() unless Encryptbot.configuration.slack_webhook.nil? notifier.ping end end |