Class: Datahen::CLI::ScraperFinisher
- Inherits:
-
Thor
- Object
- Thor
- Datahen::CLI::ScraperFinisher
- Defined in:
- lib/datahen/cli/scraper_finisher.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.banner(command, namespace = nil, subcommand = false) ⇒ Object
6 7 8 |
# File 'lib/datahen/cli/scraper_finisher.rb', line 6 def self.(command, namespace = nil, subcommand = false) "#{basename} #{@package_name} #{command.usage}" end |
Instance Method Details
#reset(scraper_name) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/datahen/cli/scraper_finisher.rb', line 15 def reset(scraper_name) if [:job] client = Client::JobFinisher.new() puts "#{client.reset([:job])}" else client = Client::ScraperFinisher.new() puts "#{client.reset(scraper_name)}" end end |