Module: BuergerBot::Notifications

Defined in:
lib/buergerbot/bot/notify.rb

Overview

Notification utility for the bot.

Class Method Summary collapse

Class Method Details

.notify(message, open_chrome: false) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/buergerbot/bot/notify.rb', line 10

def self.notify(message, open_chrome: false)
  TerminalNotifier.notify(
    message,
    title: "#{NAME} #{VERSION}",
    activate: open_chrome ? 'com.google.Chrome' : nil
  )
end