Class: Yetty::Play
Overview
Play command class
Constant Summary
Constants inherited from Command
Command::DEFAULT_CONFIGURATION_FILES
Instance Attribute Summary
Attributes inherited from Command
Instance Method Summary collapse
-
#execute! ⇒ Object
Invoke shelr record.
Methods inherited from Command
Constructor Details
This class inherits a constructor from Yetty::Command
Instance Method Details
#execute! ⇒ Object
Invoke shelr record
14 15 16 17 18 19 20 |
# File 'lib/yetty/play.rb', line 14 def execute! if(arguments.first.start_with?('http')) Yetty::Player.play_remote(arguments.first) else Yetty::Player.play_dump(arguments.first) end end |