Skip to content

Instantly share code, notes, and snippets.

View chmurph2's full-sized avatar

Christopher R. Murphy chmurph2

View GitHub Profile
@astupka
astupka / gist:4197496
Last active October 13, 2015 12:38
Delete queue using bunny
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
# 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'