Skip to content

Instantly share code, notes, and snippets.

@c2h2
Created May 14, 2012 09:39
Show Gist options
  • Save c2h2/2692967 to your computer and use it in GitHub Desktop.
Save c2h2/2692967 to your computer and use it in GitHub Desktop.
bunny emit test file.
require 'bunny'
EXCH = "asdf"
QUE = "qwer"
b= Bunny.new
b.start
exch = b.exchange(EXCH, :type => :fanout)
queue = b.queue(QUE)
queue.bind(exch)
exch.publish(rand().to_s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment