UNPKG

salesforce-alm

Version:

This package contains tools, and APIs, for an improved salesforce.com developer experience.

39 lines (37 loc) 1.41 kB
"use strict"; /* * Copyright (c) 2020, salesforce.com, inc. * All rights reserved. * Licensed under the BSD 3-Clause license. * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause */ /** * Contains config details and operations meant for package subscriber orgs. * This could potentially include test orgs used by CI process for testing packages, * and target subscriber orgs. **/ const logger = require("../core/logApi"); const PackageInstallCommand = require("./packageInstallCommand"); const DEFAULT_MAX_POLL = 0; class PackageInstallRequestGetCommand { constructor() { this.maxRetries = DEFAULT_MAX_POLL; this.packageInstallRequestId = null; this.logger = logger.child('PackageInstallRequestGetCommand'); } execute(context) { this.packageInstallRequestId = context.flags.requestid; this.packageInstallCommand = new PackageInstallCommand(context); return this.packageInstallCommand.poll(context, this.packageInstallRequestId, this.maxRetries); } /** * returns a human readable message for a cli output * * @returns {string} */ getHumanSuccessMessage(result) { return this.packageInstallCommand.getHumanSuccessMessage(result); } } module.exports = PackageInstallRequestGetCommand; //# sourceMappingURL=PackageInstallRequestGetCommand.js.map