Add a versionable DSC Resource interface with default implementation #86
michaeltlombardi
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Versionable resources are a commonly required pattern for any implementation of a package resource, but also for compatibility verification. Without a standard adoptable pattern, implementations vary on whether they support version ranges fully, partially, or not at all.
Examples
Proposal
Following on the proposals in #81, #82, and #85, I propose the creation of an IVersionableDscResource.
At a minimum, this interface should require:
With default implementations, IVersionableDscResource could:
$null
, returning$true
if all of them are$null
, return the result of comparing it to the value of the RequiredVersion key in the input$true
if it is and otherwise$false
.$false
if any check fails and$true
if they all pass.Addendum
This proposal covers an interface for a DSC Resource that expects only one version of the package/software on the system. Further thought (possibly an additional interface) should be given to supporting side-by-side versionable resources.
Beta Was this translation helpful? Give feedback.
All reactions