Module: RabbitWQ

Includes:
Servitude::Base
Defined in:
lib/rabbit_wq.rb,
lib/rabbit_wq/cli.rb,
lib/rabbit_wq/work.rb,
lib/rabbit_wq/queues.rb,
lib/rabbit_wq/server.rb,
lib/rabbit_wq/worker.rb,
lib/rabbit_wq/command.rb,
lib/rabbit_wq/version.rb,
lib/rabbit_wq/final_error.rb,
lib/rabbit_wq/work_logger.rb,
lib/rabbit_wq/work_logging.rb,
lib/rabbit_wq/configuration.rb,
lib/rabbit_wq/message_handler.rb,
lib/rabbit_wq/invalid_work_error.rb

Defined Under Namespace

Modules: Queues, Work, WorkLogging, Worker Classes: Cli, Command, Configuration, FinalError, InvalidWorkError, MessageHandler, Server, WorkLogger

Constant Summary collapse

VERSION =
"2.3.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.work_loggerObject

Returns the value of attribute work_logger.



40
41
42
# File 'lib/rabbit_wq.rb', line 40

def work_logger
  @work_logger
end

Class Method Details

.perform_bootObject



22
23
24
25
26
27
28
29
30
31
32
33
# File 'lib/rabbit_wq.rb', line 22

def self.perform_boot
  author = 'C. Jason Harrelson'

  years = 2013
  years = "#{years}#{::Time.now.year}" if years < ::Time.now.year

  boot app_name:            'Rabbit WQ',
       author:              author,
       attribution:         "v#{VERSION} Copyright © #{years} #{author}",
       default_config_path: "/etc/rabbit-wq/#{process_name}.conf",
       use_config:          true
end

.process_nameObject



35
36
37
# File 'lib/rabbit_wq.rb', line 35

def self.process_name
  'rabbit-wq'
end