Module: Barbeque::ConfigBuilder
- Included in:
- Barbeque
- Defined in:
- lib/barbeque/config.rb
Constant Summary collapse
- DEFAULT_CONFIG =
{ 'exception_handler' => 'RailsLogger', 'executor' => 'Docker', 'executor_options' => {}, # http://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_CreateQueue.html#API_CreateQueue_RequestParameters 'sqs_receive_message_wait_time' => 10, # nil means unlimited 'maximum_concurrent_executions' => nil, 'runner_wait_seconds' => 10, }
Instance Method Summary collapse
Instance Method Details
#build_config(config_name = 'barbeque') ⇒ Object
36 37 38 |
# File 'lib/barbeque/config.rb', line 36 def build_config(config_name = 'barbeque') Config.new(DEFAULT_CONFIG.merge(Rails.application.config_for(config_name))) end |
#config ⇒ Object
32 33 34 |
# File 'lib/barbeque/config.rb', line 32 def config @config ||= build_config end |