Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: puppetlabs/ruby-pwsh
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.9.0
Choose a base ref
...
head repository: puppetlabs/ruby-pwsh
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.10.0
Choose a head ref
  • 5 commits
  • 8 files changed
  • 3 contributors

Commits on Jun 28, 2021

  1. Merge pull request #171 from puppetlabs/release

    Mergeback 0.9.0 Release
    david22swan authored Jun 28, 2021
    Configuration menu
    Copy the full SHA
    acd0161 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2021

  1. (GH-172) Munge PSModulePath for class-based resources

    Prior to this commit, it was not possible to use the DSC Base Provider
    to invoke class-based DSC Resources. DSC `1.1` (the version of DSC used
    by Windows PowerShell `5.1`) cannot call `Invoke-DscResource` for class-
    based resources by module path, only by module name; further more, the
    module containing the DSC Resource _must_ be available in the *system*
    level `PSModulePath` environment variable; munging the *process* level
    `PSModulePath` does not work.
    
    This commit updates the DSC Base Provider to:
    
    1. Read the `dscmeta_resource_implementation` value from a the Puppet
       Resource API type definition of a resource and inject it into the
       invocable resource definition
    2. Add the `munge_psmodulepath` method to return the PowerShell code to
       modify the system-level `PSModulePath` if the invocable resource is
       is implemented as a PowerShell class; if the resource is any other
       implementation it instead returns nil
    3. Modify the `invoke_params` method to set the `ModuleName` key to the
       PowerShell module's name instead of the path to the module's manifest
       if the resource is implemented as a PowerShell class
    4. Inject the PowerShell code from `munge_psmodulepath` into the output
       from the `ps_script_content` method to ensure it will be called when
       invoking the resource
    5. Update the try/catch in the postscript code file to have a `finally`
       block which resets the `PSModulePath` if it was munged earlier in the
       invocation script, regardless of whether or not the invocation errors
    michaeltlombardi committed Jul 1, 2021
    Configuration menu
    Copy the full SHA
    9ecf9b2 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #173 from michaeltlombardi/gh-172/main/handle-clas…

    …s-based-resources
    
    (GH-172) Enable use of class-based DSC Resources by munging PSModulePath
    RandomNoun7 authored Jul 1, 2021
    Configuration menu
    Copy the full SHA
    85cb182 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    5eba93c View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2021

  1. Merge pull request #174 from michaeltlombardi/maint/release/prep-0-10-0

    (MAINT) Prep for 0.10.0 release
    david22swan authored Jul 2, 2021
    Configuration menu
    Copy the full SHA
    d4e3f29 View commit details
    Browse the repository at this point in the history
Loading