Class: DeploymentManager
Constructors
new DeploymentManager(app, deploymentName, streams)
new DeploymentManager(
app
,deploymentName
,streams
):DeploymentManager
Parameters
• app: SourceApplication
• deploymentName: string
• streams: any
= undefined
Returns
Source
packages/shell/src/handlers/deploymentmanager.ts:28
Properties
application
application:
SourceApplication
Source
packages/shell/src/handlers/deploymentmanager.ts:16
deployers
deployers:
Object
={}
Index signature
[key
: string
]: any
Source
packages/shell/src/handlers/deploymentmanager.ts:18
deployersDefinition
deployersDefinition:
Object
={}
Index signature
[key
: string
]: DeployerConstructor
Source
packages/shell/src/handlers/deploymentmanager.ts:17
logger
logger:
Logger
Source
packages/shell/src/handlers/deploymentmanager.ts:26
output
output:
WorkerOutput
Source
packages/shell/src/handlers/deploymentmanager.ts:25
packageDescription
packageDescription:
any
Source
packages/shell/src/handlers/deploymentmanager.ts:19
streams
streams:
Object
Type declaration
err
err:
any
out
out:
any
Source
packages/shell/src/handlers/deploymentmanager.ts:20
webda
webda:
Core
<CoreEvents
>
Source
packages/shell/src/handlers/deploymentmanager.ts:24
Methods
commandLine()
commandLine(
argv
):Promise
<number
>
Command line executor
Parameters
• argv: Object
• argv.$0: string
The script name or node command
• argv._: (string
| number
)[]
Non-option arguments
Returns
Promise
<number
>
Source
packages/shell/src/handlers/deploymentmanager.ts:103
getApplication()
getApplication():
SourceApplication
Return the Webda Application
Returns
SourceApplication
Source
packages/shell/src/handlers/deploymentmanager.ts:133
getDeployer()
getDeployer(
name
):Promise
<Deployer
<any
>>
Parameters
• name: string
Returns
Promise
<Deployer
<any
>>
Source
packages/shell/src/handlers/deploymentmanager.ts:137
getDeploymentName()
getDeploymentName():
string
Returns
string
Source
packages/shell/src/handlers/deploymentmanager.ts:152
getOutput()
getOutput():
WorkerOutput
Returns
WorkerOutput
Source
packages/shell/src/handlers/deploymentmanager.ts:95
getPackageDescription()
getPackageDescription():
PackageDescriptor
Get package.json information
Returns
PackageDescriptor
Source
packages/shell/src/handlers/deploymentmanager.ts:174
getWebda()
getWebda():
Core
<CoreEvents
>
Return instantiated Webda application
Not initialization performed on it
Returns
Core
<CoreEvents
>
Source
packages/shell/src/handlers/deploymentmanager.ts:126
run()
run(
type
,resources
):Promise
<any
>
Parameters
• type: string
of deployer to run
• resources: any
parameters
Returns
Promise
<any
>
Source
packages/shell/src/handlers/deploymentmanager.ts:161
setOutput()
setOutput(
output
):void
Parameters
• output: WorkerOutput
Returns
void
Source
packages/shell/src/handlers/deploymentmanager.ts:91
newDeployment()
static
newDeployment(argv
):Promise
<void
>
Parameters
• argv: Object
• argv.$0: string
The script name or node command
• argv._: (string
| number
)[]
Non-option arguments
Returns
Promise
<void
>