Skip to main content

Deployer

@webda/shell • Readme | API


Class: abstract Deployer<T>

Extends​

  • AbstractDeployer<T>

Type parameters​

• T extends DeployerResources

Constructors​

new Deployer(manager, resources)​

new Deployer<T>(manager, resources): Deployer<T>

Parameters​

• manager: DeploymentManager

• resources: T= undefined

Returns​

Deployer<T>

Overrides​

AbstractDeployer<T>.constructor

Source​

packages/shell/src/deployers/deployer.ts:41

Properties​

_defaulted​

_defaulted: boolean = false

Source​

packages/shell/src/deployers/deployer.ts:27


app​

app: SourceApplication

Current application being deployed

Source​

packages/shell/src/deployers/deployer.ts:22


logger​

logger: Logger

Logger to use

Source​

packages/shell/src/deployers/deployer.ts:31


manager​

manager: DeploymentManager

Service who manage all deployments

See​

DeploymentManager

Source​

packages/shell/src/deployers/deployer.ts:18


name​

name: string

Source​

packages/shell/src/deployers/deployer.ts:32


now​

now: number

Current date

Source​

packages/shell/src/deployers/deployer.ts:37


packageDescription​

packageDescription: any

Package description from package.json

Source​

packages/shell/src/deployers/deployer.ts:26


parameters​

parameters: any

Source​

packages/shell/src/deployers/deployer.ts:39


resources​

resources: T

Inherited from​

AbstractDeployer.resources

Source​

packages/core/lib/utils/abstractdeployer.d.ts:7


type​

type: string

Source​

packages/shell/src/deployers/deployer.ts:33

Methods​

defaultResources()​

defaultResources(): Promise<void>

Initiate the default value for resources

Returns​

Promise<void>

Source​

packages/shell/src/deployers/deployer.ts:77


deploy()​

abstract deploy(): Promise<any>

Deploy the application

Returns​

Promise<any>

Source​

packages/shell/src/deployers/deployer.ts:91


execute()​

execute(command, stdin, resolveOnError, logLevel): Promise<Object>

Parameters​

• command: string

• stdin: string= undefined

• resolveOnError: boolean= false

• logLevel: WorkerLogLevel= "TRACE"

Returns​

Promise<Object>

error​

error: string

output​

output: string

status​

status: number

Source​

packages/shell/src/deployers/deployer.ts:127


getApplication()​

getApplication(): Application

Return the Webda Application

Returns​

Application

Source​

packages/shell/src/deployers/deployer.ts:70


loadDefaults()​

loadDefaults(): Promise<void>

Load default resources

Returns​

Promise<void>

Source​

packages/shell/src/deployers/deployer.ts:84


replaceResourcesVariables()​

replaceResourcesVariables(): void

Replace the resources variables

this.resources = this.replaceVariables(this.resources);

Returns​

void

Source​

packages/shell/src/deployers/deployer.ts:118


replaceVariables()​

replaceVariables(obj): any

Replace variables in resources

Parameters​

• obj: any

to replace variables from

Returns​

any

Source​

packages/shell/src/deployers/deployer.ts:98


setName()​

setName(name): void

Set the deployer name

Parameters​

• name: string

Returns​

void

Source​

packages/shell/src/deployers/deployer.ts:55


setType()​

setType(type): void

Set the deployer name

Parameters​

• type: string

Returns​

void

Source​

packages/shell/src/deployers/deployer.ts:63


getSchema()​

static getSchema(): JSONSchema6

Allow to specify the JSONSchema to configure this service

Return undefined by default to fallback on the guess from ServiceParamaters

Using this method should only be exception

Returns​

JSONSchema6

Inherited from​

AbstractDeployer.getSchema

Source​

packages/core/lib/utils/abstractdeployer.d.ts:15