Class: Datahen::CLI::ScraperFinisher

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details



6
7
8
# File 'lib/datahen/cli/scraper_finisher.rb', line 6

def self.banner(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 options[:job]
    client = Client::JobFinisher.new(options)
    puts "#{client.reset(options[:job])}"
  else
    client = Client::ScraperFinisher.new(options)
    puts "#{client.reset(scraper_name)}"
  end
end