Sha256: a13e09fae45684061d5636f863eecd66cf11975d11acc412bb209553251c7a16

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require_relative "litejob/version"
require_relative "litejob/concern"
require_relative "litejob/server"
require "logger"

module Litejob
  def self.included(klass)
    klass.extend(Concern)
  end

  Configuration = Struct.new(:logger)

  def self.configuration
    @configuration ||= Configuration.new(
      _logger = Logger.new($stdout)
    )
  end

  def self.configure
    yield(configuration)
  end

  def self.logger
    configuration.logger
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
litejob-0.2.3 lib/litejob.rb