lib/request_log_analyzer/controller.rb in request-log-analyzer-1.2.0 vs lib/request_log_analyzer/controller.rb in request-log-analyzer-1.2.1

- old
+ new

@@ -32,10 +32,11 @@ def self.build(arguments) options = { } options[:database] = arguments[:database] if arguments[:database] options[:debug] = arguments[:debug] + options[:dump] = arguments[:dump] output_class = RequestLogAnalyzer::Output::const_get(arguments[:output]) if arguments[:file] output_file = File.new(arguments[:file], "w+") options[:output] = output_class.new(output_file, :width => 80, :color => false, :characters => :ascii) @@ -61,10 +62,11 @@ else options.store(:source_files, arguments.parameters) end controller = Controller.new(RequestLogAnalyzer::Source::LogParser.new(file_format, options), options) + #controller = Controller.new(RequestLogAnalyzer::Source::Database.new(file_format, options), options) options[:parse_strategy] = arguments[:parse_strategy] # register filters if arguments[:after] || arguments[:before] @@ -208,9 +210,11 @@ @source.finalize if @output.io.kind_of?(File) puts puts "Report written to: " + File.expand_path(@output.io.path) + puts "Need an expert to analyze your application?" + puts "Mail to contact@railsdoctors.com or visit us at http://railsdoctors.com" puts "Thanks for using request-log-analyzer!" @output.io.close end end