Method: DeadFinder.run_with_input

Defined in:
lib/deadfinder.rb

.run_with_input(options) ⇒ Object



71
72
73
74
75
76
77
78
79
80
81
# File 'lib/deadfinder.rb', line 71

def self.run_with_input(options)
  DeadFinder::Logger.apply_options(options)
  DeadFinder::Logger.info 'Reading input'
  app = Runner.new
  targets = Array(yield)
  targets = targets.first(options['limit']) if options['limit'].positive?
  targets.each do |target|
    run_with_target(target, options, app)
  end
  gen_output(options)
end