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

Method constructor

lib/index.js:7704–7721  ·  view source on GitHub ↗
(version, githubAuth)

Source from the content-addressed store, hash-verified

7702};
7703class 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)) {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected