consolidate naming and start exporting interfaces

This commit is contained in:
2016-08-02 15:32:06 +02:00
parent d8a4c3d088
commit c3c2ab776d
23 changed files with 221 additions and 185 deletions

View File

@ -1,8 +1,11 @@
import * as plugins from "./smartnginx.plugins";
import * as paths from "./smartnginx.paths";
import { NginxConfig } from "./smartnginx.classes.nginxconfig";
import { NginxZone } from "./smartnginx.classes.nginxzone";
import { NginxHost } from "./smartnginx.classes.nginxhost";
/**
* manages a nginxprocess for an NginxConfig
*/
export class NginxProcess {
started: boolean = false;
nginxConfig:NginxConfig;
@ -37,7 +40,7 @@ export class NginxProcess {
reloadConfig(){
let done = plugins.q.defer();
if(this.started == false){
this.start()
this.start();
} else {
plugins.shelljs.exec("nginx -s reload");
};