Inedo / inedox-windows

Windows extension for Otter and BuildMaster.
BSD 3-Clause "New" or "Revised" License
7 stars 4 forks source link

Create Ensure-PSModule Operation #86

Closed rhessinger closed 3 years ago

rhessinger commented 3 years ago

The Ensure-PSModule operation is to ensure that a Powershell module is installed on your machine. It is basically a wrapper to the Install-Module powershell command but adds a check to verify the version is installed.

Ensure-PSModule {
   ModuleName: ...
   Version: ...
   MinVersion:...
   MaxVersion:...
   Force: false
   AllowClobber: false
   Repository: ... 
   Credential: ...(I expect this to be a ResourceCredential)
   Scope:...
   Properties: ... (any other additional properties to pass to Install-Module)
}

Where it just ensures that version (or within the min/max) is installed.

You would specify Version or Min/Max Version but not both.

rhessinger commented 3 years ago

For more information see forums thread: https://forums.inedo.com/topic/3036/ensure-dsc-and-module-version

rhessinger commented 3 years ago

The PowerShell operations have been migrated to inedox-scripting and this operation was included in that starting in version 1.10. Closing this issue since it is no longer in this extension,