Method: WebCrawler::Application#runner
- Defined in:
- lib/web_crawler/application.rb
#runner(name) ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/web_crawler/application.rb', line 30 def runner(name) $:.unshift './' Array.wrap(@options[:lib]).each { |l| $:.unshift l } require name.underscore klass = name.classify.constantize klass.run allow_format(:json, :yaml) end |