Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fanouts #8

Merged
merged 1 commit into from

2 participants

@mhat

Yeah, it was easy.

@famoseagle famoseagle merged commit f0ba667 into famoseagle:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 20, 2011
  1. @mhat

    add fanout exchanges

    mhat authored
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/carrot.rb
View
4 lib/carrot.rb
@@ -61,6 +61,10 @@ def headers(name = 'amq.match', opts = {})
exchanges[name] ||= AMQP::Exchange.new(self, :headers, name, opts)
end
+ def fanout(name = 'amq.fanout', opts = {})
+ exchanges[name] ||= AMQP::Exchange.new(self, :fanout, name, opts)
+ end
+
def exchanges
@exchanges ||= {}
end
Something went wrong with that request. Please try again.