class Spty::Command::LaunchCommand
Constants
- ASCRIPT_PLAYER_LAUNCH
Public Class Methods
call(_, _command = 'launch')
click to toggle source
# File lib/spty/commands/launch_command.rb, line 7 def self.call(_, _command = 'launch') if running?(show_mesg: false) puts 'Spotify player is running' return end Spty::AppleScriptRunner.(ASCRIPT_PLAYER_LAUNCH) puts 'launching Spotify player' end