Class: DaimonSkycrawlers::Commands::Runner

Inherits:
Thor
  • Object
show all
Defined in:
lib/daimon_skycrawlers/commands/runner.rb

Instance Method Summary collapse

Instance Method Details

#crawlerObject



11
12
13
14
15
16
17
18
19
# File 'lib/daimon_skycrawlers/commands/runner.rb', line 11

def crawler
  load_init
  load_crawlers
  require(File.expand_path("app/crawler.rb", Dri.pwd))
  DaimonSkycrawlers::Crawler.run
rescue => ex
  puts ex.message
  exit(false)
end

#processorObject



22
23
24
25
26
27
28
29
30
# File 'lib/daimon_skycrawlers/commands/runner.rb', line 22

def processor
  load_init
  load_processors
  require(File.expand_path("app/processor.rb", Dir.pwd))
  DaimonSkycrawlers::Processor.run
rescue => ex
  puts ex.message
  exit(false)
end