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

Method tryInstallFromFolder

src/AzModuleInstaller.ts:82–95  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 }
81
82 private async tryInstallFromFolder() {
83 if (this.installResult.isInstalled) {
84 core.debug(`Module already installed skipping tryInstallFromFolder`);
85 return;
86 }
87
88 if (FileUtils.pathExists(this.modulePath)) {
89 core.debug(`Az ${this.version} present at ${this.modulePath} as folder.`);
90 this.installResult = {
91 isInstalled: true,
92 moduleSource: AzModuleSource.Folder
93 };
94 }
95 }
96
97 private async tryInstallFromZip() {
98 if (this.installResult.isInstalled) {

Callers 1

installMethod · 0.95

Calls 1

pathExistsMethod · 0.45

Tested by

no test coverage detected