Version 1.0.0 Release #1
@@ -1,15 +0,0 @@
|
||||
$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
|
||||
}
|
||||
Reference in New Issue
Block a user