Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

add fanout exchanges

  • Loading branch information...
commit 6c6df1b9e9ff461f438356e4551cbe9f4f92b1d3 1 parent 05c24f3
Matt Knopp authored July 19, 2011

Showing 1 changed file with 4 additions and 0 deletions. Show diff stats Hide diff stats

  1. 4  lib/carrot.rb
4  lib/carrot.rb
@@ -61,6 +61,10 @@ def headers(name = 'amq.match', opts = {})
61 61
     exchanges[name] ||= AMQP::Exchange.new(self, :headers, name, opts)
62 62
   end
63 63
 
  64
+  def fanout(name = 'amq.fanout', opts = {})
  65
+    exchanges[name] ||= AMQP::Exchange.new(self, :fanout, name, opts)
  66
+  end
  67
+
64 68
   def exchanges
65 69
     @exchanges ||= {}
66 70
   end

0 notes on commit 6c6df1b

Please sign in to comment.
Something went wrong with that request. Please try again.