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