Class: DaimonSkycrawlers::Commands::Runner
- Inherits:
-
Thor
- Object
- Thor
- DaimonSkycrawlers::Commands::Runner
- Defined in:
- lib/daimon_skycrawlers/commands/runner.rb
Instance Method Summary collapse
Instance Method Details
#crawler ⇒ Object
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.("app/crawler.rb", Dri.pwd)) DaimonSkycrawlers::Crawler.run rescue => ex puts ex. exit(false) end |
#processor ⇒ Object
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.("app/processor.rb", Dir.pwd)) DaimonSkycrawlers::Processor.run rescue => ex puts ex. exit(false) end |