Method: Play::Client.pause
- Defined in:
- lib/play/client.rb
.pause ⇒ Object
“Pauses” a client by stopping currently playing songs and setting up the pause temp file.
Returns nothing.
30 31 32 33 |
# File 'lib/play/client.rb', line 30 def self.pause paused? ? `rm -f #{pause_path}` : `touch #{pause_path}` `killall afplay > /dev/null 2>&1` end |