class DVR::CLI::App
Public Instance Methods
play(file)
click to toggle source
# File lib/dvr/cli/app.rb, line 25 def play(file) puts "Playing episodes from #{file}" DVR.configure {|c| c.recording_location = file} DVR.play end
record(episode_location)
click to toggle source
# File lib/dvr/cli/app.rb, line 18 def record(episode_location) configure_options! DVR.configure {|c| c.episode_location = episode_location} DVR.record_and_download end
version()
click to toggle source
# File lib/dvr/cli/app.rb, line 8 def version puts DVR::VERSION end
Private Instance Methods
configure_options!()
click to toggle source
# File lib/dvr/cli/app.rb, line 33 def configure_options! DVR.configure do |config| options.each {|option, value| config.send("#{option}=", value)} end end