@softvisio/core
Version:
Softisio core
19 lines (14 loc) • 414 B
JavaScript
import NginxApi from "#lib/api/nginx";
export default Super =>
class extends Super {
// protected
async _checkEnabled () {
return this.config.enabled;
}
async _install () {
return new NginxApi( this.config.url, this.app.env.name, this.app.env.serviceName );
}
async _destroy () {
this.instance.destroy();
}
};