new ScaleCommand()
Properties:
Name | Type | Description |
---|---|---|
MK_INTRO |
string | The translation key of 'initializing' phase message. |
The main class that handles the 'scale' command execution.
Methods
execute(lengthopt) → {Promise}
The main method to call another methods sequentially, including decorations output. Then, exec 'pm2 scale' command.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
length |
string |
<optional> |
The cluster length to scale for |
Returns:
- Type
- Promise
query() → {Promise.<Array.<Object>>}
Retrieve cluster length if its not defined on the CLI arguments.
Returns:
User answers, with question key as its key and answer as its value
- Type
- Promise.<Array.<Object>>