Skip to content

Instantly share code, notes, and snippets.

View patrikjohansson's full-sized avatar

Patrik Johansson patrikjohansson

  • Gothenburg, Sweden
View GitHub Profile
bunny = Bunny.new(:host => "localhost" )
bunny.start
APP_CONFIG[:asset_sync_bindings].each do |e|
queue = bunny.queue e[:queue], :durable => true
exchange = bunny.exchange e[:exchange] , :durable => true , :type => :fanout
queue.bind exchange
end