Class: Executo::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/executo/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_redisObject

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

#loggerObject

logger [Object].



17
18
19
# File 'lib/executo/configuration.rb', line 17

def logger
  @logger.is_a?(Proc) ? instance_exec(&@logger) : @logger
end

#redisObject

Returns the value of attribute redis.



5
6
7
# File 'lib/executo/configuration.rb', line 5

def redis
  @redis
end