Created
April 9, 2014 07:14
-
-
Save tbuehlmann/10234856 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bunny' | |
connection = Bunny.new | |
connection.start | |
channel = connection.create_channel | |
exchange = channel.default_exchange | |
puts channel.queues.keys.inspect # [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bunny' | |
connection = Bunny.new | |
connection.start | |
channel = connection.create_channel | |
exchange = channel.default_exchange | |
queue = channel.queue('foo', durable: true) | |
puts channel.queues.keys.inspect # ["foo"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment