Sha256: 8bffe49c762b406d6eb1902b3ff04ab883da068828641610deb29d236acc9d3b

Contents?: true

Size: 311 Bytes

Versions: 3

Compression:

Stored size: 311 Bytes

Contents

# frozen_string_literal: true

namespace :rails_log_parser do
  desc 'notify about found problems in production.log'
  task :parse, [:from_minutes] do |_t, args|
    parser = RailsLogParser::Parser.from_file(RailsLogParser::Parser.log_path)
    print parser.summary(last_minutes: args[:from_minutes])
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_log_parser-0.0.18 lib/rails_log_parser/tasks.rb
rails_log_parser-0.0.17 lib/rails_log_parser/tasks.rb
rails_log_parser-0.0.16 lib/rails_log_parser/tasks.rb