Sha256: 01b7b9d85cb1dc00fd3eca1018734de453eca7476841207033915365cc102d3e
Contents?: true
Size: 634 Bytes
Versions: 1
Compression:
Stored size: 634 Bytes
Contents
namespace :rabbitmq do def retrieve_vhosts ENV["VHOSTS"] ? ENV["VHOSTS"].split(",") : nil end desc "Create a RabbitMQ schema for a vhost (comma separated vhosts)" task :create do |t, args| RabbitMQ::Definition.create(retrieve_vhosts) end desc "Drop all RabbitMQ queues/exchanges/bindings" task :drop do RabbitMQ::Definition.drop end desc "Dump RabbitMQ JSON structure (from defined vhosts or supplied comma separated vhosts) " task :dump do |t, args| RabbitMQ::Definition.dump(retrieve_vhosts) end desc "Load RabbitMQ JSON structure" task :load do RabbitMQ::Definition.load end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rabbitmq-definition-0.1.3 | lib/rabbitmq_definition/rabbitmq-definition.rake |