tsdocker/ts/npmdocker.promisechain.ts

18 lines
534 B
TypeScript
Raw Normal View History

2016-07-18 18:48:34 +00:00
import * as plugins from "./npmdocker.plugins";
import * as paths from "./npmdocker.paths";
2016-07-19 22:40:37 +00:00
import {Ora} from "beautylog";
2016-07-18 22:37:13 +00:00
//modules
import * as ConfigModule from "./npmdocker.config";
import * as DockerModule from "./npmdocker.docker";
2016-07-19 22:40:37 +00:00
export let npmdockerOra = new Ora("npmdocker","blue");
npmdockerOra.start();
2016-07-18 22:37:13 +00:00
export let run = () => {
2016-07-18 18:48:34 +00:00
let done = plugins.q.defer();
2016-07-18 22:37:13 +00:00
ConfigModule.run()
.then(DockerModule.run)
2016-07-19 22:40:37 +00:00
.then((configArg) => {
done.resolve(configArg);
})
2016-07-18 18:48:34 +00:00
return done.promise;
}