Sha256: 9109467d4637b0257dae1e608a2b6789a562625ec103ca0b9488df045a59f30b

Contents?: true

Size: 493 Bytes

Versions: 1

Compression:

Stored size: 493 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.configure
    yield config
  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

1 entries across 1 versions & 1 rubygems

Version Path
racecar-0.3.4 lib/racecar.rb