class TomatoPaste::Notification
Constants
- NOTIFICATION_SOUND
Public Class Methods
audio_alert_command()
click to toggle source
# File lib/tomato_paste/notification.rb, line 8 def self.audio_alert_command "afplay #{NOTIFICATION_SOUND}" end
display_visual_alert(message)
click to toggle source
# File lib/tomato_paste/notification.rb, line 16 def self.display_visual_alert(message) return false if message.nil? || message.empty? TerminalNotifier.notify(message, title: "Tomato Paste") end
play_audio_alert()
click to toggle source
# File lib/tomato_paste/notification.rb, line 12 def self.play_audio_alert system(self.audio_alert_command) end