Last active
October 13, 2015 12:38
-
-
Save astupka/4197496 to your computer and use it in GitHub Desktop.
Delete queue using bunny
This file contains 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 'bunny' | |
def delete_queue(queue_name) | |
Bunny.run(MessagingHelper.config.amqp) do |bunny| | |
queue = bunny.queue(queue_name, {:durable => true}) | |
queue.delete | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Inkcredible.