Sha256: 390f02663bcdbbc0409d89ec8302a73463b11f4c143985afbc64126dc0c06c5a
Contents?: true
Size: 682 Bytes
Versions: 1
Compression:
Stored size: 682 Bytes
Contents
require 'thor' module AirPlayer class App < Thor desc 'play <URI|Podcast XML|FILE|DIR> [-r|--repeat] [-s|--shuffle]', 'Play video(URI or Podcast XML URI or local video file path or video directory)' method_option :repeat, :aliases => '-r', :desc => 'Repeat play', :type => :boolean method_option :shuffle, :aliases => '-s', :desc => 'Shuffle play', :type => :boolean def play(target) controller = Controller.new Playlist.new(options).add(target).entries do |media| controller.play(media) end end map '--version' => :version desc 'version, --version', 'Display version' def version puts VERSION end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
airplayer-0.0.6 | lib/airplayer/app.rb |