Module: PubSub::BunnyConfig

Included in:
FanoutPublisher, Publisher, Subscriber
Defined in:
lib/pub_sub/bunny_config.rb

Instance Method Summary collapse

Instance Method Details

#bunny_configObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/pub_sub/bunny_config.rb', line 3

def bunny_config
  defaults = { 
    :host => 'localhost',
    :port => 5672,
    :user => 'guest',
    :pass => 'guest',

    :spec => '09',
    :heartbeat => 60
  }
  defined?(BUNNY_CONFIG) ? defaults.merge(BUNNY_CONFIG) : defaults
end