salesforce-alm
Version:
This package contains tools, and APIs, for an improved salesforce.com developer experience.
26 lines (24 loc) • 771 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 MdapiDeployApi = require("./mdapiDeployApi");
/**
* Command implementation that uses mdapiDeployApi to deploy source - directory or zip - to given org.
*/
class MetadataDeployCommand {
constructor(context) {
this.mdDeploy = new MdapiDeployApi(context.org);
}
validate(context) {
return this.mdDeploy.validate(context);
}
execute(context) {
return this.mdDeploy.deploy(context);
}
}
module.exports = MetadataDeployCommand;
//# sourceMappingURL=mdapiDeployCommand.js.map