ArturT/knapsack

View on GitHub
lib/knapsack/config/tracker.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Knapsack
  module Config
    class Tracker
      class << self
        def enable_time_offset_warning
          true
        end

        def time_offset_in_seconds
          30
        end

        def generate_report
          !!(ENV['KNAPSACK_GENERATE_REPORT'] =~ /\Atrue|0\z/i)
        end
      end
    end
  end
end