19 lines
777 B
PowerShell
19 lines
777 B
PowerShell
$PrivatePath = Join-Path -Path $PSScriptRoot -ChildPath "Private"
|
|
$ProviderPath = Join-Path -Path $PSScriptRoot -ChildPath "Providers"
|
|
$PublicPath = Join-Path -Path $PSScriptRoot -ChildPath "Public"
|
|
|
|
$Private = @(Get-ChildItem -Path $PrivatePath -Filter "*.ps1" -File -ErrorAction Stop | Sort-Object -Property FullName)
|
|
$Providers = @()
|
|
if(Test-Path -Path $ProviderPath){
|
|
$Providers = @(Get-ChildItem -Path $ProviderPath -Filter "Provider.*.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 + $Providers + $Public)){
|
|
. $File.FullName
|
|
}
|
|
|
|
Export-ModuleMember -Function @(
|
|
"Resolve-DSCConfigurationData"
|
|
)
|