Sha256: 0bdc7310e0833fa73533294756f85fad9798ccdfec795d2781eff682bb2ca9a9
Contents?: true
Size: 650 Bytes
Versions: 6
Compression:
Stored size: 650 Bytes
Contents
require 'bunny' require 'mono_logger' module Pwwka class ConfigurationError < StandardError; end class Configuration attr_accessor :rabbit_mq_host attr_accessor :topic_exchange_name attr_accessor :delayed_exchange_name attr_accessor :logger attr_accessor :options def initialize @rabbit_mq_host = nil @topic_exchange_name = "pwwka.topics.#{Pwwka.environment}" @delayed_exchange_name = "pwwka.delayed.#{Pwwka.environment}" @logger = MonoLogger.new(STDOUT) @options = {} end def allow_delayed? options[:allow_delayed] end end end
Version data entries
6 entries across 6 versions & 1 rubygems