bin/log_parser.rb
def parse(file_path)
  return 'Please provide path to log file!' if file_path.nil?

  result = Log::Process.call(file: file_path)

  result.error if result.failure?
end
# Parse logs with paths and IPs and sorts them by views and unique views
Parse logs with paths and IPs and sorts them by views and unique views
Parse logs with paths and IPs and sorts them by views and unique views
def parse(file_path)
  return 'Please provide path to log file!' if file_path.nil?
  result = Log::Process.call(file: file_path)
  result.error if result.failure?
end
def parse ( file_path ) return 'Please provide path to log file!' if file_path . nil? result = Log :: Process . call ( file : file_path ) result . error if result . failure? end
Parse logs with paths and IPs and sorts them by views and unique views
Parse logs with paths and IPs and sorts them by views and unique views
file_path