salesforce-alm
Version:
This package contains tools, and APIs, for an improved salesforce.com developer experience.
28 lines (26 loc) • 965 B
JavaScript
;
/*
* 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
*/
const Stash = require("../core/stash");
const MdapiDeployReportApi = require("./mdapiDeployReportApi");
/**
* Command implementation that uses mdapiDeployApi to deploy source - directory or zip - to given org.
*/
class MetadataDeployReportCommand {
constructor(context, stashkey = Stash.Commands.MDAPI_DEPLOY) {
this.stashkey = stashkey;
this.mdDeployReport = new MdapiDeployReportApi(context.org, undefined, this.stashkey);
}
validate(context) {
return this.mdDeployReport.validate(context);
}
execute(context) {
return this.mdDeployReport.report(context);
}
}
module.exports = MetadataDeployReportCommand;
//# sourceMappingURL=mdapiDeployReportCommand.js.map