Class: RubyTapasDownloader::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_tapas_downloader/cli.rb

Overview

The Command Line Interface for Ruby Tapas Downloader.

Instance Method Summary collapse

Constructor Details

#initialize(email, password, download_path) ⇒ CLI

Returns a new instance of CLI.

Parameters:

  • email (String)

    the e-mail for the user.

  • password (String)

    the password for the user.

  • download_path (String)

    the path in which the download is performed.



8
9
10
11
12
# File 'lib/ruby_tapas_downloader/cli.rb', line 8

def initialize email, password, download_path
  @email         = email
  @password      = password
  @download_path = download_path
end

Instance Method Details

#downloadObject

Perform complete download procedure.



15
16
17
18
19
20
21
# File 'lib/ruby_tapas_downloader/cli.rb', line 15

def download
  create_agent
  
  fetch_feed
  create_catalog
  download_catalog
end