2016-07-18 20:48:34 +02:00
|
|
|
import * as plugins from "./npmdocker.plugins";
|
2016-07-19 00:37:13 +02:00
|
|
|
import * as promisechain from "./npmdocker.promisechain";
|
2016-07-19 19:21:06 +02:00
|
|
|
import * as ConfigModule from "./npmdocker.config";
|
2016-07-18 20:48:34 +02:00
|
|
|
|
2016-07-19 19:21:06 +02:00
|
|
|
|
|
|
|
promisechain.run()
|
|
|
|
.then((configArg:ConfigModule.IConfig) => {
|
|
|
|
if(configArg.exitCode == 0){
|
2016-07-20 00:40:37 +02:00
|
|
|
plugins.beautylog.success("container ended all right!");
|
|
|
|
} else {
|
|
|
|
plugins.beautylog.error("container ended with error!");
|
|
|
|
process.exit(1);
|
2016-07-19 19:21:06 +02:00
|
|
|
}
|
|
|
|
});
|
2016-07-18 20:48:34 +02:00
|
|
|
|