UNPKG

@webda/shell

Version:

Deploy a Webda app or configure it

22 lines 828 B
import { ConsoleLogger, WorkerOutput } from "@webda/workout"; import { DeploymentManager } from "../handlers/deploymentmanager.js"; import { WebdaSampleApplication } from "../index.spec.js"; export class DeployerTest { constructor() { this.execs = []; this.mockExecute = async (...args) => { this.execs.push(args); return { status: 0, output: "", error: "" }; }; } async before(logger = "INFO") { let workerOutput = new WorkerOutput(); if (logger) { new ConsoleLogger(workerOutput, logger); } await WebdaSampleApplication.load(); this.manager = new DeploymentManager(WebdaSampleApplication, "Production"); this.deployer = await this.getDeployer(this.manager); } } //# sourceMappingURL=deployertest.js.map