Sha256: ccfdbe28a58fde6549773d03d6412dcde937971ff0cc88f20999a81acd68dcbb
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
#!/usr/bin/env ruby # encoding: utf-8 require "rubygems" require "amqp" # Declaring a queue with explicitly given name using AMQP::Queue constructor AMQP.start("amqp://guest:guest@dev.rabbitmq.com") do |connection, open_ok| AMQP::Channel.new do |channel, open_ok| AMQP::Queue.new(channel, "images.resize", :auto_delete => true) do |queue, declare_ok| puts "#{queue.name} is ready to go." connection.close { EventMachine.stop { exit } } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
amqp-0.8.0.rc13 | examples/guides/queues/01b_declaring_a_queue_using_queue_constructor.rb |