Sha256: d573b756ffe23e8dc1ff3798d936292533c0152df032555c3af0004fb92cff28

Contents?: true

Size: 448 Bytes

Versions: 8

Compression:

Stored size: 448 Bytes

Contents

require "logger"

require "racecar/consumer"
require "racecar/runner"
require "racecar/config"

module Racecar
  class Error < StandardError
  end

  class ConfigError < Error
  end

  def self.config
    @config ||= Config.new
  end

  def self.logger
    @logger ||= Logger.new(STDOUT)
  end

  def self.logger=(logger)
    @logger = logger
  end

  def self.run(processor)
    Runner.new(processor, config: config, logger: logger).run
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
racecar-0.3.3 lib/racecar.rb
racecar-0.3.2 lib/racecar.rb
racecar-0.3.1 lib/racecar.rb
racecar-0.3.0 lib/racecar.rb
racecar-0.3.0.beta1 lib/racecar.rb
racecar-0.2.1 lib/racecar.rb
racecar-0.2.0 lib/racecar.rb
racecar-0.1.4 lib/racecar.rb