UNPKG

@pushrocks/smartnginx

Version:

control nginx from node, TypeScript ready

28 lines (27 loc) 592 B
import { SmartNginx } from './smartnginx.classes.smartnginx'; /** * manages a nginxprocess for an NginxConfig */ export declare class NginxProcess { started: boolean; smartNginxRef: SmartNginx; private nginxChildProcess; private smartshellInstance; constructor(nginxRefArg: SmartNginx); /** * start nginx */ start(): Promise<void>; /** * reload config */ reloadConfig(): Promise<void>; /** * stop the nginx instance */ stop(): Promise<void>; /** * checks if nginx is in path */ check(): boolean; }