Sha256: e33af80ebb6c934d0a6d803a5ad3cb2be83d011d9ff3b5a87bc2ea8330c9c158

Contents?: true

Size: 609 Bytes

Versions: 4

Compression:

Stored size: 609 Bytes

Contents

require 'sidejobs/extensions/active_job/queue_adapter'
require 'sidejobs/configuration'
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 ||= 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

4 entries across 4 versions & 1 rubygems

Version Path
sidejobs-4.0.0.2 lib/sidejobs.rb
sidejobs-4.0.0.1 lib/sidejobs.rb
sidejobs-4.0.0.0 lib/sidejobs.rb
sidejobs-0.0.1 lib/sidejobs.rb