Created
October 4, 2009 10:05
-
-
Save dylanegan/201288 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
rabbit_stew do |stew| | |
stew.fanout :bar, :queue => 'foo' | |
stew.direct :baz, :queue => 'wee' | |
stew.topic :wah do |topic| | |
topic.key "faz.*", :queue => 'wee' | |
end | |
queue :foo do | |
puts "im the foo queue. I handle the bar fanout for now." | |
end | |
queue :wee do | |
puts "im the wee queue. I handle a direct baz and the routing key faz.* for the topic wah" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment