Class: Spty::Command::ReplayCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Spty::Command::ReplayCommand
- Defined in:
- lib/spty/commands/replay_command.rb
Constant Summary collapse
- ASCRIPT_TRACK_REPLAY =
<<-EOL tell application "Spotify" previous track end tell EOL
Constants inherited from BaseCommand
BaseCommand::ASCRIPT_PLAYER_DETECT
Class Method Summary collapse
Methods inherited from BaseCommand
Class Method Details
.call(_, command = 'replay') ⇒ Object
9 10 11 12 13 14 |
# File 'lib/spty/commands/replay_command.rb', line 9 def self.call(_, command = 'replay') return unless running? Spty::AppleScriptRunner.(ASCRIPT_TRACK_REPLAY) Spty::Command::InfoCommand.(nil, command) end |