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

Method tryInstallFromPSGallery

src/AzModuleInstaller.ts:137–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

135 }
136
137 private async tryInstallFromPSGallery() {
138 if (this.installResult.isInstalled) {
139 core.debug(`Module already installed skipping tryInstallFromPSGallery`);
140 return;
141 }
142
143 await Utils.saveAzModule(this.version, this.modulePath);
144 this.installResult = {
145 isInstalled: true,
146 moduleSource: AzModuleSource.PSGallery
147 };
148 }
149
150 private async getDownloadUrlFromGHRelease() {
151 core.debug("Getting versions manifest from GHRelease.");

Callers 1

installMethod · 0.95

Calls 1

saveAzModuleMethod · 0.45

Tested by

no test coverage detected