module Boxxspring::Worker

Constants

QUEUE_MESSAGE_REQUEST_COUNT
QUEUE_MESSAGE_WAIT_IN_SECONDS
VERSION

Public Class Methods

configuration( &block ) click to toggle source
# File lib/boxxspring/worker.rb, line 5
def self.configuration( &block )
  Configuration.instance().instance_eval( &block ) unless block.nil?
  Configuration.instance()
end
env() click to toggle source
# File lib/boxxspring/worker.rb, line 10
def self.env 
  @environment ||= ENV[ 'WORKERS_ENV' ] || 'development'
end
root() click to toggle source
# File lib/boxxspring/worker.rb, line 14
def self.root
  @root ||= begin 
    specification = Gem::Specification.find_by_name( 'boxxspring-workers' ) 
    Pathname.new( specification.gem_dir )
  end
end