Class: Log::Analyzer::CLI

Inherits:
Object
  • Object
show all
Defined in:
lib/log-analyzer/cli.rb

Defined Under Namespace

Classes: Report

Class Method Summary collapse

Class Method Details

.run(files, options) ⇒ Object



5
6
7
8
9
# File 'lib/log-analyzer/cli.rb', line 5

def self.run(files, options)
  routing_text = File.read(options[:routing_file])
  analyze = Analyze.new(files, routing_text)
  Report.new(analyze.sort).run
end