(azPSVersion: string)
| 5 | |
| 6 | export default class InitializeAzure { |
| 7 | static async importAzModule(azPSVersion: string) { |
| 8 | await Utils.setPSModulePath(); |
| 9 | if (azPSVersion === "latest") { |
| 10 | azPSVersion = await Utils.getLatestModule(Constants.moduleName); |
| 11 | } else { |
| 12 | await Utils.checkModuleVersion(Constants.moduleName, azPSVersion); |
| 13 | } |
| 14 | core.debug(`Az Module version used: ${azPSVersion}`); |
| 15 | await Utils.setPSModulePath(`${Constants.prefix}${azPSVersion}`); |
| 16 | } |
| 17 | } |
no test coverage detected