Sha256: c63f455d91f3068d01529558af522a7443f18ec4643912ed7a098591ff3bc77b

Contents?: true

Size: 591 Bytes

Versions: 2

Compression:

Stored size: 591 Bytes

Contents

module RabbitCarrots
  class << self
    attr_accessor :configuration
  end

  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end

  class Configuration
    attr_accessor :rabbitmq_host,
                  :rabbitmq_port,
                  :rabbitmq_user,
                  :rabbitmq_password,
                  :rabbitmq_vhost,
                  :routing_key_mappings,
                  :rabbitmq_exchange_name,
                  :automatically_recover,
                  :network_recovery_interval,
                  :recovery_attempts
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rabbit_carrots-1.0.1 lib/rabbit_carrots/configuration.rb
rabbit_carrots-1.0.0 lib/rabbit_carrots/configuration.rb