ScaleCommand

ScaleCommand

new ScaleCommand()

Source:
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}

Source:
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>>}

Source:
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>>