Compare commits

...

6 Commits

Author SHA1 Message Date
1049920efd 2.0.7 2019-01-01 22:35:18 +01:00
b7a34403c5 fix(core): update 2019-01-01 22:35:18 +01:00
987e19372a 2.0.6 2019-01-01 22:34:37 +01:00
0b97aaee91 fix(core): update 2019-01-01 22:34:36 +01:00
b87ca1fa03 2.0.5 2018-08-11 15:10:28 +02:00
824f872fa5 fix(tests): update 2018-08-11 15:10:27 +02:00
6 changed files with 703 additions and 147 deletions

View File

@ -22,6 +22,7 @@ release:
stage: release
environment: npmjs-com_registry
script:
- npmci npm prepare
- npmci npm publish
only:
- tags

817
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "@pushrocks/smartnginx",
"version": "2.0.4",
"version": "2.0.7",
"private": false,
"description": "control nginx from node, TypeScript ready",
"main": "dist/index.js",
@ -24,17 +24,17 @@
},
"homepage": "https://gitlab.com/pushrocks/smartnginx#README",
"dependencies": {
"@pushrocks/smartfile": "^6.0.6",
"@pushrocks/smartlog": "^2.0.1",
"@pushrocks/smartfile": "^6.0.11",
"@pushrocks/smartlog": "^2.0.9",
"@pushrocks/smartpromise": "^2.0.5",
"@pushrocks/smartshell": "^2.0.6",
"@pushrocks/smartstring": "^3.0.0"
"@pushrocks/smartshell": "^2.0.13",
"@pushrocks/smartstring": "^3.0.5"
},
"devDependencies": {
"@gitzone/tsbuild": "^2.0.22",
"@gitzone/tsrun": "^1.1.12",
"@gitzone/tstest": "^1.0.13",
"@pushrocks/tapbundle": "^3.0.5",
"@gitzone/tsbuild": "^2.1.4",
"@gitzone/tsrun": "^1.1.17",
"@gitzone/tstest": "^1.0.18",
"@pushrocks/tapbundle": "^3.0.7",
"qenv": "^1.1.7"
}
}

View File

@ -30,8 +30,8 @@ tap.test(`should produce an instance of NginxConfig`, async () => {
});
tap.test('.addZone() should add a zone to NginxConfig Object', async () => {
testSmartNginx.addHost(testNginxZone01);
testSmartNginx.addHost(testNginxZone02);
testSmartNginx.addHost('test200.bleu.de', '192.192.192.191');
testSmartNginx.addHost('test201.blue.de', '192.192.192.191');
});
tap.test('.deploy() should deploy a config from an instance', async () => {

View File

@ -37,7 +37,7 @@ export class NginxProcess {
);
}
this.started = true;
plugins.smartlog.defaultLogger.info('started Nginx!');
plugins.smartlog.defaultLogger.log('info', 'started Nginx!');
done.resolve();
return done.promise;
}
@ -52,7 +52,7 @@ export class NginxProcess {
} else {
this.smartshellInstance.exec('nginx -s reload');
}
plugins.smartlog.defaultLogger.info('NginxProcess has loaded the new config!');
plugins.smartlog.defaultLogger.log('info', 'NginxProcess has loaded the new config!');
done.resolve();
return done.promise;
}
@ -65,9 +65,9 @@ export class NginxProcess {
if (typeof this.nginxChildProcess != 'undefined') {
this.smartshellInstance.exec('nginx -s quit');
this.started = false;
plugins.smartlog.defaultLogger.info('stopped Nginx!');
plugins.smartlog.defaultLogger.log('info', 'stopped Nginx!');
} else {
plugins.smartlog.defaultLogger.info('nginx already stopped!');
plugins.smartlog.defaultLogger.log('info', 'nginx already stopped!');
}
done.resolve();
return done.promise;

View File

@ -79,7 +79,7 @@ export class SmartNginx {
let promiseArray = [];
for (let host of this.hosts) {
await host.deploy();
plugins.smartlog.defaultLogger.info(`Host ${host.hostName} deployed!`);
plugins.smartlog.defaultLogger.log('info', `Host ${host.hostName} deployed!`);
this.nginxProcess.reloadConfig();
};
}