move Promise requirement
This commit is contained in:
parent
6008b750b6
commit
4205bee0b1
|
@ -9,7 +9,6 @@ var fs = require('fs')
|
||||||
, HEADER
|
, HEADER
|
||||||
, outputFile
|
, outputFile
|
||||||
, outputPemsDir
|
, outputPemsDir
|
||||||
, Promise = require('es6-promise').Promise
|
|
||||||
;
|
;
|
||||||
|
|
||||||
HEADER =
|
HEADER =
|
||||||
|
@ -182,7 +181,9 @@ function dumpCerts(certs, filename, pemsDir) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function run(filename) {
|
function run(filename) {
|
||||||
return new Promise(function (resolve, reject) {
|
var PromiseA = require('es6-promise').Promise;
|
||||||
|
|
||||||
|
return new PromiseA(function (resolve, reject) {
|
||||||
if (!filename) {
|
if (!filename) {
|
||||||
console.error("Error: No file specified");
|
console.error("Error: No file specified");
|
||||||
console.info("Usage: %s <outputfile>", process.argv[1]);
|
console.info("Usage: %s <outputfile>", process.argv[1]);
|
||||||
|
|
Loading…
Reference in New Issue