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 |
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
# See http://github.com/mynyml/watchr/ | |
# This script was modified from http://gist.github.com/raw/189052/1fd4faf0e9edab9d8e941fd21a1a9e7f70cf5aad/specs.watchr.rb | |
# | |
# Run me with: | |
# | |
# $ watchr ~/.rails.watchr.rb | |
# | |
# or alias me with: | |
# | |
# alias rw='watchr ~/.rails.watchr.rb' |