Class: Executo::Configuration
- Inherits:
-
Object
- Object
- Executo::Configuration
- Defined in:
- lib/executo/configuration.rb
Instance Attribute Summary collapse
-
#active_job_redis ⇒ Object
Returns the value of attribute active_job_redis.
-
#logger ⇒ Object
logger [Object].
-
#redis ⇒ Object
Returns the value of attribute redis.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 |
# File 'lib/executo/configuration.rb', line 9 def initialize @redis = {} @active_job_redis = {} @logger = ActiveSupport::TaggedLogging.new(Logger.new($stdout)) @logger.level = Logger::INFO end |
Instance Attribute Details
#active_job_redis ⇒ Object
Returns the value of attribute active_job_redis.
6 7 8 |
# File 'lib/executo/configuration.rb', line 6 def active_job_redis @active_job_redis end |
#logger ⇒ Object
logger [Object].
17 18 19 |
# File 'lib/executo/configuration.rb', line 17 def logger @logger.is_a?(Proc) ? instance_exec(&@logger) : @logger end |
#redis ⇒ Object
Returns the value of attribute redis.
5 6 7 |
# File 'lib/executo/configuration.rb', line 5 def redis @redis end |