Skip to content

Instantly share code, notes, and snippets.

View johnkellar's full-sized avatar

John Kellar johnkellar

View GitHub Profile
@johnkellar
johnkellar / rabbit.rake
Last active January 29, 2019 20:22
RabbitMQ Configuration Rake Tasks
namespace :rabbit do
def get_queues
`#{@base_command} list queues | awk '{print$4}' | grep -vw '|' | grep -vw 'name' | awk 'NF'`
end
def get_queues_with_count
`#{@base_command} list queues | awk '{print$18, $4}' | grep -vw '|' | grep -vw 'name' | awk 'NF'`
end