UNPKG

@webda/shell

Version:

Deploy a Webda app or configure it

61 lines (60 loc) 1.71 kB
import { Core, Logger } from "@webda/core"; import { WorkerOutput } from "@webda/workout"; import * as yargs from "yargs"; import { SourceApplication } from "../code/sourceapplication.js"; import { Deployer } from "../deployers/deployer.js"; export interface DeployerConstructor { new (manager: DeploymentManager, resources: any): Deployer<any>; } export declare class DeploymentManager { application: SourceApplication; deployersDefinition: { [key: string]: DeployerConstructor; }; deployers: { [key: string]: any; }; packageDescription: any; streams: { out: any; err: any; }; webda: Core; output: WorkerOutput; logger: Logger; constructor(app: SourceApplication, deploymentName: string, streams?: any); static newDeployment(argv: yargs.Arguments): Promise<void>; /** * * @param output */ setOutput(output: WorkerOutput): void; getOutput(): WorkerOutput; /** * Command line executor * @param argv */ commandLine(argv: yargs.Arguments): Promise<number>; /** * Return instantiated Webda application * * Not initialization performed on it */ getWebda(): Core<import("@webda/core").CoreEvents>; /** * Return the Webda Application */ getApplication(): SourceApplication; getDeployer(name: string): Promise<Deployer<any>>; getDeploymentName(): string; /** * * @param type of deployer to run * @param resources parameters */ run(type: string, resources: any): Promise<any>; /** * Get package.json information */ getPackageDescription(): import("@webda/core").PackageDescriptor; }