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

Method tryInstallFromZip

src/AzModuleInstaller.ts:97–112  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 private async tryInstallFromZip() {
98 if (this.installResult.isInstalled) {
99 core.debug(`Module already installed skipping tryInstallFromZip`);
100 return;
101 }
102
103 if (FileUtils.pathExists(this.moduleZipPath)) {
104 core.debug(`Az ${this.version} present at ${this.moduleZipPath} as zip, expanding it.`);
105 await new ArchiveTools(this.isWin).unzip(this.moduleZipPath, this.moduleRoot);
106 await FileUtils.deleteFile(this.moduleZipPath);
107 this.installResult = {
108 isInstalled: true,
109 moduleSource: AzModuleSource.Zip
110 };
111 }
112 }
113
114 private async tryInstallFromGHRelease() {
115 if (this.installResult.isInstalled) {

Callers 1

installMethod · 0.95

Calls 3

pathExistsMethod · 0.45
unzipMethod · 0.45
deleteFileMethod · 0.45

Tested by

no test coverage detected