UNPKG

firmament-vita

Version:

Firmament module for automating VITA tasks

55 lines 1.86 kB
#!/usr/bin/env node "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); require("reflect-metadata"); var inversify_config_1 = require("../../inversify.config"); var path = require('path'); var fullPipeline = inversify_config_1.default.get('FullPipeline'); var vitaFileUtil = inversify_config_1.default.get('VitaFileUtil'); var vitaTasks = inversify_config_1.default.get('VitaTasks'); var vitaDecryptUnTar = inversify_config_1.default.get('VitaDecryptUnTar'); var vitaPcapMerge = inversify_config_1.default.get('VitaPcapMerge'); var commandUtil = inversify_config_1.default.get('CommandUtil'); var postal = inversify_config_1.default.get('IPostal'); process.on('uncaughtException', function (err) { console.log(err); }); fullPipeline.decryptAndUnTarOptions.encryptedFiles.push('/home/jreeme/pcaps/pcaps-encrypted/good.tar.enc'); fullPipeline.mergePcapFilesOptions.mergedPcapFile = 'zagabondBliff.pcap'; fullPipeline.fromJsonFile('/home/jreeme/src/firmament-vita/ts/test/test-data/testFullPath00'); postal.publish({ channel: 'CommandUtil', topic: 'SuppressConsoleOutput', data: { suppressConsoleOutput: false } }); var topic = 'badfood'; postal.subscribe({ channel: 'FirmamentVita', topic: topic, callback: function (data) { console.dir(data); } }); vitaTasks.processFullPipelineInstance(fullPipeline, function (err, status) { postal.publish({ channel: 'FirmamentVita', topic: topic, data: { type: 'status', payload: status } }); }, function (err, result) { postal.publish({ channel: 'FirmamentVita', topic: topic, data: { type: 'result', payload: result } }); commandUtil.processExitWithError(err, 'Finished.'); }); //# sourceMappingURL=manual-test.js.map