PowerShell / DSC

This repo is for the DSC v3 project
MIT License
133 stars 22 forks source link

Making PowerShell adapter and class-based resources cross-platform #439

Closed anmenaga closed 1 month ago

anmenaga commented 1 month ago

PR Summary

This removes PowerShell adapter's dependency on PSDesiredStateConfiguration module, therefore making class-based PS resources cross-platform.

There is a number of minor follow-up TODOs in the code that will be filed as issues once this base code is reviewed/approved.

Performance impact: tests showed roughly 50% time improvement over classic Get-DscResource cmdlet; e.g.:

Measure-Command { Get-DscClassResourceDefinitions }
TotalSeconds      : 0.8507316

Measure-Command { Get-DscResource }
TotalSeconds      : 2.1735731