Class: AgileNotifier::Player
- Inherits:
-
Object
- Object
- AgileNotifier::Player
- Defined in:
- lib/agile_notifier/player.rb
Class Method Summary collapse
Class Method Details
.play_on_linux(file) ⇒ Object
4 5 6 7 |
# File 'lib/agile_notifier/player.rb', line 4 def play_on_linux(file) # play command comes from sox package, not pre-installed system("play #{file}") end |
.play_on_osx(file) ⇒ Object
9 10 11 |
# File 'lib/agile_notifier/player.rb', line 9 def play_on_osx(file) system("afplay #{file}") end |
.play_on_windows(file) ⇒ Object
13 14 15 |
# File 'lib/agile_notifier/player.rb', line 13 def play_on_windows(file) raise(NotImplementedError, "Method [#{__method__}] is empty, please implement", caller) end |