()
| 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) { |
no test coverage detected