lib/request_log_analyzer/aggregator/database.rb in request-log-analyzer-1.0.4 vs lib/request_log_analyzer/aggregator/database.rb in request-log-analyzer-1.1.0
- old
+ new
@@ -48,16 +48,16 @@
def warning(type, message, lineno)
@orm_module::Warning.create!(:warning_type => type.to_s, :message => message, :lineno => lineno)
end
# Prints a short report of what has been inserted into the database
- def report(output = STDOUT, report_width = 80, color = false)
- output << "\n"
- output << green("━" * report_width, color) + "\n"
+ def report(output)
+ output.title('Request database created')
+
output << "A database file has been created with all parsed request information.\n"
output << "#{@request_count} requests have been added to the database.\n"
output << "To execute queries on this database, run the following command:\n"
- output << " $ sqlite3 #{options[:database]}\n"
+ output << output.colorize(" $ sqlite3 #{options[:database]}\n", :bold)
output << "\n"
end
protected