Class: DeadList
- Inherits:
-
Object
- Object
- DeadList
- Defined in:
- lib/deadlist.rb
Overview
Main DeadList class.
Instance Method Summary collapse
-
#initialize ⇒ DeadList
constructor
A new instance of DeadList.
-
#run ⇒ Object
Argument abstraction should probably happen at this level!.
Constructor Details
#initialize ⇒ DeadList
Returns a new instance of DeadList.
10 11 12 |
# File 'lib/deadlist.rb', line 10 def initialize @current_version = '1.1.0' end |
Instance Method Details
#run ⇒ Object
Argument abstraction should probably happen at this level!
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 |
# File 'lib/deadlist.rb', line 16 def run # Start a new CLI session # In future this could be abstracted to pass the show link vs all args, so a 'session' is started per show. session = CLI.new(@current_version, ARGV) # Scrape links and metadata for given show session.create_show # In future, consider starting multiple downloaders for a list of shows # show_list = session.args[:shows] # show_list.each do |show| # session.download_show(show) # end # Create folder with show date and begin track downloads if format matches session.download_show end |