#!/usr/bin/node /* * Can be required as a module or called directly. * * In the latter case, it will do a queue run. * * The following environment variables may come in * useful: * * DOUGAL_ROOT Use it to specify the path to Dougal's * top directory (`software/`). Most of the time this * is not needed unless running in a development * environment. * * NODE_TLS_REJECT_UNAUTHORIZED=0 Use this when running * against the internal test server or any other endpoint * that has self-signed certificates. WARNING: think carefully * if you really want to do this, most of the time you don't. */ module.exports = { processQueue: require('./process') } if (!module.parent) { module.exports.processQueue().then(() => process.exit()); }