Class: Yetty::Play

Inherits:
Command show all
Defined in:
lib/yetty/play.rb

Overview

Play command class

Constant Summary

Constants inherited from Command

Command::DEFAULT_CONFIGURATION_FILES

Instance Attribute Summary

Attributes inherited from Command

#arguments, #options, #ui

Instance Method Summary collapse

Methods inherited from Command

#initialize

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