initial
This commit is contained in:
4
ts/index.ts
Normal file
4
ts/index.ts
Normal file
@ -0,0 +1,4 @@
|
||||
import * as plugins from "./smartnginx.plugins";
|
||||
|
||||
// classes
|
||||
export {NginxConfig,NginxZone} from "./smartnginx.classes.nginxconfig";
|
47
ts/smartnginx.classes.nginxconfig.ts
Normal file
47
ts/smartnginx.classes.nginxconfig.ts
Normal 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
3
ts/smartnginx.plugins.ts
Normal file
@ -0,0 +1,3 @@
|
||||
export import cert = require("cert");
|
||||
export import q = require("q");
|
||||
export import smartfile = require("smartfile");
|
Reference in New Issue
Block a user