PowerShell / PackageManagementProviderResource

Modules with DSC resources for the PackageManagement(aka OneGet) providers.
MIT License
37 stars 24 forks source link

Added the AllowClobber parameter to the PSModule resource #39

Closed brwilkinson closed 3 years ago

brwilkinson commented 6 years ago

This adds the ability to specify the AllowClobber parameter.

The change was made on the Set function.

Used Splatting to add this extra optional 'AllowClobber' parameter on the Install-Module Cmdlet.

There was only as single named parameter before for ErrorVariable, so I created the hashtable that includes that value with the optional AllowClobber.


This change is Reviewable

msftclas commented 6 years ago

CLA assistant check
All CLA requirements met.

jianyunt commented 6 years ago

@brwilkinson, do you mind to push your change to https://github.com/OneGet/oneget ? This repo has been deprecated. The PackageManagementProviderResource module has been merged to PackageManagement. We no longer publish new version of PackageManagementProviderResource to powreshellgallery.com. Thank you!

brwilkinson commented 6 years ago

@jianyunt oh sure, I thought I cloned the new repo....

Actually do you have the link to the PSModule DSC resource ?