Sha256: 7e7022dbf44d4eac80aebeb0c7ca768c201dd701ae1d89bbc7f3513e49e45bbf
Contents?: true
Size: 679 Bytes
Versions: 1
Compression:
Stored size: 679 Bytes
Contents
require 'logger' module CodeClimate module TestReporter @@configuration = nil def self.configure @@configuration = Configuration.new if block_given? yield configuration end configuration end def self.configuration @@configuration || configure end class Configuration attr_accessor :branch, :logger, :profile, :path_prefix def logger @logger ||= default_logger end def profile @profile ||= "test_frameworks" end private def default_logger log = Logger.new($stderr) log.level = Logger::INFO log end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codeclimate-test-reporter-0.3.0 | lib/code_climate/test_reporter/configuration.rb |