module Osbourne::Config::SharedConfigs
Attributes
aws_credentials[W]
config[W]
sns_config[W]
sqs_config[W]
Public Instance Methods
cache()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 12 def cache config.cache ||= ActiveSupport::Cache::NullStore.new end
config()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 8 def config @config ||= ActiveSupport::OrderedOptions.new end
dead_letter()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 28 def dead_letter config.dead_letter ||= true end
lock()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 40 def lock config.lock ||= Osbourne::Locks::NOOP.new end
logger()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 36 def logger config.logger ||= Logger.new("log/osbourne.log") end
max_retry_count()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 32 def max_retry_count @max_retry_count ||= (config.max_retry_count.presence || 5).to_s end
prefix()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 52 def prefix config.prefix ||= Rails.env end
sleep_time()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 44 def sleep_time config.sleep_time ||= 15 end
test_mode!()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 20 def test_mode! @test_mode = true end
test_mode=(test_mode)
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 24 def test_mode=(test_mode) @test_mode = test_mode end
test_mode?()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 16 def test_mode? false end
threads_per_worker()
click to toggle source
# File lib/osbourne/config/shared_configs.rb, line 48 def threads_per_worker config.threads_per_worker ||= 5 end