Skip to main content

ShellDeployer

@webda/shell • Readme | API


Class: ShellDeployer

Webda Deployer​

WebdaDeployer/ShellDeployer

Extends​

Constructors​

new ShellDeployer(manager, resources)​

new ShellDeployer(manager, resources): ShellDeployer

Parameters​

• manager: DeploymentManager

• resources: ShellDeployerResources= undefined

Returns​

ShellDeployer

Inherited from​

Deployer.constructor

Source​

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

Properties​

_defaulted​

_defaulted: boolean = false

Inherited from​

Deployer._defaulted

Source​

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


app​

app: SourceApplication

Current application being deployed

Inherited from​

Deployer.app

Source​

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


logger​

logger: Logger

Logger to use

Inherited from​

Deployer.logger

Source​

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


manager​

manager: DeploymentManager

Service who manage all deployments

See​

DeploymentManager

Inherited from​

Deployer.manager

Source​

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


name​

name: string

Inherited from​

Deployer.name

Source​

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


now​

now: number

Current date

Inherited from​

Deployer.now

Source​

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


packageDescription​

packageDescription: any

Package description from package.json

Inherited from​

Deployer.packageDescription

Source​

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


parameters​

parameters: any

Inherited from​

Deployer.parameters

Source​

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


resources​

resources: ShellDeployerResources

Inherited from​

Deployer.resources

Source​

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


type​

type: string

Inherited from​

Deployer.type

Source​

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

Methods​

defaultResources()​

defaultResources(): Promise<void>

Initiate the default value for resources

Returns​

Promise<void>

Inherited from​

Deployer.defaultResources

Source​

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


deploy()​

deploy(): Promise<void>

Deploy the application

Returns​

Promise<void>

Overrides​

Deployer.deploy

Source​

packages/shell/src/deployers/shell.ts:12


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

Inherited from​

Deployer.execute

Source​

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


getApplication()​

getApplication(): Application

Return the Webda Application

Returns​

Application

Inherited from​

Deployer.getApplication

Source​

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


loadDefaults()​

loadDefaults(): Promise<void>

Load default resources

Returns​

Promise<void>

Inherited from​

Deployer.loadDefaults

Source​

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


replaceResourcesVariables()​

replaceResourcesVariables(): void

Replace the resources variables

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

Returns​

void

Inherited from​

Deployer.replaceResourcesVariables

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

Inherited from​

Deployer.replaceVariables

Source​

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


setName()​

setName(name): void

Set the deployer name

Parameters​

• name: string

Returns​

void

Inherited from​

Deployer.setName

Source​

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


setType()​

setType(type): void

Set the deployer name

Parameters​

• type: string

Returns​

void

Inherited from​

Deployer.setType

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​

Deployer.getSchema

Source​

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