Class: Miteru::CLI

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

Instance Method Summary collapse

Instance Method Details

#executeObject



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# File 'lib/miteru/cli.rb', line 16

def execute
  Miteru.configure do |config|
    config.auto_download = options["auto_download"]
    config.ayashige = options["ayashige"]
    config.directory_traveling = options["directory_traveling"]
    config.download_to = options["download_to"]
    config.post_to_slack = options["post_to_slack"]
    config.size = options["size"]
    config.verbose = options["verbose"]

    threads = options["threads"]
    config.threads = threads if threads
  end

  Crawler.execute
end