Sha256: 4cc40c5f434f154b3ae780549c52543c195a29886e82b961dcb45f1931167f43
Contents?: true
Size: 828 Bytes
Versions: 2
Compression:
Stored size: 828 Bytes
Contents
require 'foodtaster/config' require 'foodtaster/rspec' require 'logger' module Foodtaster autoload :Client, 'foodtaster/client' autoload :ServerProcess, 'foodtaster/server_process' autoload :Vm, 'foodtaster/vm' autoload :RSpecRun, 'foodtaster/rspec_run' class << self def logger @logger ||= Logger.new(STDOUT).tap do |log| log_level = ENV['FT_LOGLEVEL'] || self.config.log_level.to_s.upcase log.level = Logger.const_get(log_level) log.formatter = proc do |severity, datetime, progname, msg| "[FT #{severity}]: #{msg}\n" end end end def config @config ||= Config.default end def configure(&config_block) Foodtaster::RSpec.configure config.configure(&config_block) if config_block end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foodtaster-0.0.10 | lib/foodtaster.rb |
foodtaster-0.0.9 | lib/foodtaster.rb |