Sha256: 544c135238008519a1f8cf5fc0ee460e6ce52826c382f02bfd9032dbd8a380da

Contents?: true

Size: 498 Bytes

Versions: 1

Compression:

Stored size: 498 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.2 lib/litejob.rb