This commit is contained in:
2016-07-06 03:14:44 +02:00
commit d99fd48813
14 changed files with 161 additions and 0 deletions

4
ts/index.ts Normal file
View File

@ -0,0 +1,4 @@
import * as plugins from "./smartnginx.plugins";
// classes
export {NginxConfig,NginxZone} from "./smartnginx.classes.nginxconfig";

View File

@ -0,0 +1,47 @@
import * as plugins from "./smartnginx.plugins";
export enum ZoneTypes {
}
export class NginxConfig {
zones:NginxZone[];
constructor(){
};
// interact with Zones
addZone(zoneArg:NginxZone){
}
listZones():NginxZone[] {
return this.zones;
};
removeZones(zoneArg:NginxZone){
}
// handle deployment of zones
deploy(){
};
nginxStart(){
};
nginxStop(){
};
};
export class NginxZone {
domain
constructor(optionsArg:{
zoneName:string,
type:ZoneTypes,
destination:string
}){
}
}
let mynginx = new NginxConfig();

3
ts/smartnginx.plugins.ts Normal file
View File

@ -0,0 +1,3 @@
export import cert = require("cert");
export import q = require("q");
export import smartfile = require("smartfile");