Files
Merge-DSCConfigurationData/Merge-ConfigurationData.ps1
Torsten Brendgen e10ab48bb4 Creating Module
2026-04-21 13:02:51 +02:00

16 lines
657 B
PowerShell

$ModuleRoot = $PSScriptRoot
if([String]::IsNullOrWhiteSpace($ModuleRoot)){
throw "This compatibility loader must be dot-sourced from a file path. Use Import-Module './Merge-DSCConfigurationData.psd1' for module usage."
}
$PrivatePath = Join-Path -Path $ModuleRoot -ChildPath "Private"
$PublicPath = Join-Path -Path $ModuleRoot -ChildPath "Public"
$Private = @(Get-ChildItem -Path $PrivatePath -Filter "*.ps1" -File -ErrorAction Stop | Sort-Object -Property FullName)
$Public = @(Get-ChildItem -Path $PublicPath -Filter "*.ps1" -File -ErrorAction Stop | Sort-Object -Property FullName)
foreach($File in @($Private + $Public)){
. $File.FullName
}