Sha256: 4204e3454f1630499167963607000a19ede8b8796d04a4b80b6705761f3f42c4

Contents?: true

Size: 376 Bytes

Versions: 3

Compression:

Stored size: 376 Bytes

Contents

require "logger"

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

module Racecar
  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

3 entries across 3 versions & 1 rubygems

Version Path
racecar-0.1.3 lib/racecar.rb
racecar-0.1.2 lib/racecar.rb
racecar-0.1.1 lib/racecar.rb