Class: Istox::BunnyBoot
- Inherits:
-
Object
- Object
- Istox::BunnyBoot
- Defined in:
- lib/istox/helpers/bunny_boot.rb
Class Method Summary collapse
Class Method Details
.connect ⇒ Object
13 14 15 16 17 |
# File 'lib/istox/helpers/bunny_boot.rb', line 13 def connect connection = Bunny.new(data[:connect].symbolize_keys) connection.start $channel = connection.create_channel end |
.initialize!(amqp_config_path) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/istox/helpers/bunny_boot.rb', line 6 def initialize!(amqp_config_path) @@amqp_config_path = amqp_config_path ::Istox::Publisher.initialize!(amqp_config_path) connect subscribe_to_queues end |