(version, githubAuth)
| 7702 | }; |
| 7703 | class AzModuleInstaller { |
| 7704 | constructor(version, githubAuth) { |
| 7705 | var _a; |
| 7706 | this.isWin = false; |
| 7707 | this.version = version; |
| 7708 | this.githubAuth = githubAuth; |
| 7709 | this.installResult = { |
| 7710 | moduleSource: "Others", |
| 7711 | isInstalled: false |
| 7712 | }; |
| 7713 | const platform = (_a = (process.env.RUNNER_OS || os.type())) === null || _a === void 0 ? void 0 : _a.toLowerCase(); |
| 7714 | core.debug(`Platform: ${platform}`); |
| 7715 | this.moduleRoot = Utils_1.default.getDefaultAzInstallFolder(platform); |
| 7716 | if (platform == "windows" || platform == "windows_nt") { |
| 7717 | this.isWin = true; |
| 7718 | } |
| 7719 | this.modulePath = path_1.default.join(this.moduleRoot, `${Constants_1.default.prefix}${this.version}`); |
| 7720 | this.moduleZipPath = `${this.modulePath}.zip`; |
| 7721 | } |
| 7722 | install() { |
| 7723 | return __awaiter(this, void 0, void 0, function* () { |
| 7724 | if (Utils_1.default.isHostedAgent(this.moduleRoot)) { |
nothing calls this directly
no test coverage detected