Class: Logripper::CLI
- Inherits:
-
Thor
- Object
- Thor
- Logripper::CLI
- Defined in:
- lib/logripper/cli.rb
Instance Method Summary collapse
Instance Method Details
#extract(url, log) ⇒ Object
9 10 11 12 13 |
# File 'lib/logripper/cli.rb', line 9 def extract(url, log) log_file = File.open(log, 'r') parsed_log = Parser.new(log_file).find(url) puts Exporter.new(parsed_log).to_csv end |