module ExceptionAlarm
Constants
- PLAY_COMMAND
- VERSION
Public Class Methods
mpg123_install_command()
click to toggle source
# File lib/exception_alarm/mpg123.rb, line 15 def self.mpg123_install_command return "brew install #{PLAY_COMMAND}" if OS.osx? return "apt-get install #{PLAY_COMMAND}" if OS.linux? return nil end
mpg123_not_found()
click to toggle source
# File lib/exception_alarm/mpg123.rb, line 8 def self.mpg123_not_found m = "exception_alarm warning: #{PLAY_COMMAND} command not found! #{PLAY_COMMAND} is required to play the mp3 alarm file." ic = self.mpg123_install_command m += " Please install #{PLAY_COMMAND} with '#{ic}'" if ic return m end