Sha256: 017e8c2a0df11a3632e657512771340d0a7b1768cc5683f423353398010f6550

Contents?: true

Size: 652 Bytes

Versions: 2

Compression:

Stored size: 652 Bytes

Contents

require 'sidejobs/extensions/active_job/queue_adapter'
require 'sidejobs/configuration'
require 'sidejobs/loggable'
require 'sidejobs/daemon'
require 'sidejobs/job'
require 'sidejobs/processor'
require 'sidejobs/queue'
require 'sidejobs/railtie'
require 'sidejobs/version'

module Sidejobs
  class << self

    def daemon
      @daemon ||= Daemon.new
    end

    def queue
      @queue ||= Queue.new
    end

    def logger
      @logger ||= ActiveSupport::Logger.new(Rails.root.join('log/sidejobs.log'))
    end

    def configuration
      @configuration ||= Configuration.new
    end

    def configure
      yield configuration
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sidejobs-5.1.1 lib/sidejobs.rb
sidejobs-5.1.0 lib/sidejobs.rb