Module: Boxxspring::Worker
- Defined in:
- lib/boxxspring/worker.rb,
lib/boxxspring/worker/base.rb,
lib/boxxspring/worker/error.rb,
lib/boxxspring-worker-version.rb,
lib/boxxspring/worker/logging.rb,
lib/boxxspring/worker/metrics.rb,
lib/boxxspring/worker/task_base.rb,
lib/boxxspring/worker/authorization.rb,
lib/boxxspring/worker/configuration.rb
Defined Under Namespace
Modules: Authorization, Logging, Metrics
Classes: Base, Configuration, Error, TaskBase
Constant Summary
collapse
- QUEUE_MESSAGE_REQUEST_COUNT =
10
- QUEUE_MESSAGE_WAIT_IN_SECONDS =
4
- VERSION =
'1.5.3'
Class Method Summary
collapse
Class Method Details
.configuration(&block) ⇒ Object
5
6
7
8
|
# File 'lib/boxxspring/worker.rb', line 5
def self.configuration( &block )
Configuration.instance().instance_eval( &block ) unless block.nil?
Configuration.instance()
end
|
.env ⇒ Object
10
11
12
|
# File 'lib/boxxspring/worker.rb', line 10
def self.env
@environment ||= ENV[ 'WORKERS_ENV' ] || 'development'
end
|
.root ⇒ Object
14
15
16
17
18
19
|
# 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
|