Sha256: 1235b6b828925f6263c9ccb7eb1a8402b1b652871cc0ac496724057adb0cbb99
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
# frozen_string_literal: true require 'logger' require 'singleton' require_relative 'redis' module Quiq class Config include Singleton attr_reader :queues, :path attr_writer :logger def redis=(server) @redis = Redis.new(server) end def redis @redis ||= Redis.new end def logger @logger ||= begin level = @log_level || Logger::DEBUG ::Logger.new(STDOUT, level: level) end end def parse_options(path:, queues:, log_level:) @path = path @queues = queues @log_level = log_level end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
quiq-0.2.0 | lib/quiq/config.rb |