MCPcopy Create free account
hub / github.com/Azure/powershell / tryInstallFromFolder

Method tryInstallFromFolder

lib/index.js:7756–7770  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7754 });
7755 }
7756 tryInstallFromFolder() {
7757 return __awaiter(this, void 0, void 0, function* () {
7758 if (this.installResult.isInstalled) {
7759 core.debug(`Module already installed skipping tryInstallFromFolder`);
7760 return;
7761 }
7762 if (FileUtils_1.default.pathExists(this.modulePath)) {
7763 core.debug(`Az ${this.version} present at ${this.modulePath} as folder.`);
7764 this.installResult = {
7765 isInstalled: true,
7766 moduleSource: exports.AzModuleSource.Folder
7767 };
7768 }
7769 });
7770 }
7771 tryInstallFromZip() {
7772 return __awaiter(this, void 0, void 0, function* () {
7773 if (this.installResult.isInstalled) {

Callers 1

installMethod · 0.95

Calls 1

pathExistsMethod · 0.45

Tested by

no test coverage detected