Sha256: 25688a930fb90df11a3a1ae386f101135fd05ff849a1d456d56c86a35656e30c

Contents?: true

Size: 454 Bytes

Versions: 1

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

module Executo
  class Configuration
    attr_accessor :redis
    attr_accessor :active_job_redis
    attr_writer   :logger

    def initialize
      @redis = {}
      @active_job_redis = {}
      @logger = ActiveSupport::TaggedLogging.new(Logger.new($stdout))
      @logger.level = Logger::INFO
    end

    # logger [Object].
    def logger
      @logger.is_a?(Proc) ? instance_exec(&@logger) : @logger
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
executo-0.3.12 lib/executo/configuration.rb