Class: Spty::Command::UnmuteCommand
- Inherits:
-
BaseCommand
- Object
- BaseCommand
- Spty::Command::UnmuteCommand
- Defined in:
- lib/spty/commands/unmute_command.rb
Constant Summary collapse
- ASCRIPT_PLAYER_UNMUTE =
<<-EOL tell application "Spotify" set sound volume to 60 end tell EOL
Constants inherited from BaseCommand
BaseCommand::ASCRIPT_PLAYER_DETECT
Class Method Summary collapse
Methods inherited from BaseCommand
Class Method Details
.call(options, _) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/spty/commands/unmute_command.rb', line 8 def self.call(, _) return unless running? Spty::AppleScriptRunner.call(ASCRIPT_PLAYER_UNMUTE) puts "Player unmute" end |