Skip to content

Instantly share code, notes, and snippets.

@tbuehlmann
Created April 9, 2014 07:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tbuehlmann/10234856 to your computer and use it in GitHub Desktop.
Save tbuehlmann/10234856 to your computer and use it in GitHub Desktop.
require 'bunny'
connection = Bunny.new
connection.start
channel = connection.create_channel
exchange = channel.default_exchange
puts channel.queues.keys.inspect # []
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