Created
April 20, 2010 17:38
-
-
Save careo/372794 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| require 'rubygems' | |
| require 'mq' | |
| names = STDIN.readlines.collect { |name| name.strip } | |
| names.shift # Lising queues ...\n | |
| names.pop # ...done. | |
| #AMQP.logging = true | |
| AMQP.start { | |
| mq = MQ.new | |
| names.each do |name| | |
| puts "Deleting #{name.inspect}" | |
| queue = mq.queue(name) | |
| queue.delete | |
| end | |
| AMQP.stop { EM.stop } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment