Sha256: 71d945d13fbafc1f62ada558bc67f309853afab083f4687a9a20f46bcf4bca8b

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

require 'ansi'
require 'rabbit_wq/version'

module RabbitWQ

  APP_ID                = 'rabbit-wq'
  APP_NAME              = 'Rabbit Work Queue'
  INT                   = 'INT'
  VERSION_COPYRIGHT     = "v#{VERSION} \u00A9#{Time.now.year}"

  autoload :Command,        'rabbit_wq/command'
  autoload :Configuration,  'rabbit_wq/configuration'
  autoload :FinalError,     'rabbit_wq/final_error'
  autoload :Logging,        'rabbit_wq/logging'
  autoload :Queues,         'rabbit_wq/queues'
  autoload :MessageHandler, 'rabbit_wq/message_handler'
  autoload :Server,         'rabbit_wq/server'
  autoload :ServerDaemon,   'rabbit_wq/server_daemon'
  autoload :ServerLogging,  'rabbit_wq/server_logging'
  autoload :Work,           'rabbit_wq/work'
  autoload :Worker,         'rabbit_wq/worker'
  autoload :WorkLogger,     'rabbit_wq/work_logger'

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configuration=( configuration )
    @configuration = configuration
  end

  def self.configure
    yield( configuration ) if block_given?
  end

  class << self
    attr_accessor :logger,
                  :work_logger
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rabbit-wq-1.9.0 lib/rabbit_wq.rb
rabbit-wq-1.8.0 lib/rabbit_wq.rb
rabbit-wq-1.7.0 lib/rabbit_wq.rb