X-Git-Url: http://git.squeep.com/?p=squeep-indie-auther;a=blobdiff_plain;f=bin%2Fticket-queue-profile.js;fp=bin%2Fticket-queue-profile.js;h=b32d2d2959599defd4b135a466b0714695feba28;hp=0000000000000000000000000000000000000000;hb=726cd980f0ed5588cfe8cbb2d994d5e4aef6e292;hpb=3c145bc590577c738df4d279744f3e2f9a250294 diff --git a/bin/ticket-queue-profile.js b/bin/ticket-queue-profile.js new file mode 100644 index 0000000..b32d2d2 --- /dev/null +++ b/bin/ticket-queue-profile.js @@ -0,0 +1,13 @@ +'use strict'; + +/** + * Generates the required command line to configure rabbitmq queue profile. + */ + +const { Publisher } = require('@squeep/amqp-helper'); +const Config = require('../config'); + +const config = new Config(process.env.NODE_ENV); +const publisher = new Publisher(console, config.queues.amqp); +const result = publisher.policyCommand(config.queues.ticketPublishName); +console.log(result);