2016-07-18 18:48:34 +00:00
|
|
|
"use strict";
|
|
|
|
const plugins = require("./npmdocker.plugins");
|
2016-07-19 22:40:37 +00:00
|
|
|
const beautylog_1 = require("beautylog");
|
2016-07-18 22:37:13 +00:00
|
|
|
//modules
|
|
|
|
const ConfigModule = require("./npmdocker.config");
|
|
|
|
const DockerModule = require("./npmdocker.docker");
|
2016-07-19 22:40:37 +00:00
|
|
|
exports.npmdockerOra = new beautylog_1.Ora("npmdocker", "blue");
|
|
|
|
exports.npmdockerOra.start();
|
2016-07-18 22:37:13 +00:00
|
|
|
exports.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;
|
|
|
|
};
|
2016-07-19 22:40:37 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibnBtZG9ja2VyLnByb21pc2VjaGFpbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3RzL25wbWRvY2tlci5wcm9taXNlY2hhaW4udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLE1BQVksT0FBTyxXQUFNLHFCQUFxQixDQUFDLENBQUE7QUFFL0MsNEJBQWtCLFdBQVcsQ0FBQyxDQUFBO0FBQzlCLFNBQVM7QUFDVCxNQUFZLFlBQVksV0FBTSxvQkFBb0IsQ0FBQyxDQUFBO0FBQ25ELE1BQVksWUFBWSxXQUFNLG9CQUFvQixDQUFDLENBQUE7QUFFeEMsb0JBQVksR0FBRyxJQUFJLGVBQUcsQ0FBQyxXQUFXLEVBQUMsTUFBTSxDQUFDLENBQUM7QUFDdEQsb0JBQVksQ0FBQyxLQUFLLEVBQUUsQ0FBQztBQUNWLFdBQUcsR0FBRztJQUNiLElBQUksSUFBSSxHQUFHLE9BQU8sQ0FBQyxDQUFDLENBQUMsS0FBSyxFQUFFLENBQUM7SUFDN0IsWUFBWSxDQUFDLEdBQUcsRUFBRTtTQUNiLElBQUksQ0FBQyxZQUFZLENBQUMsR0FBRyxDQUFDO1NBQ3RCLElBQUksQ0FBQyxDQUFDLFNBQVM7UUFDWixJQUFJLENBQUMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQzVCLENBQUMsQ0FBQyxDQUFBO0lBQ04sTUFBTSxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUM7QUFDeEIsQ0FBQyxDQUFBIn0=
|