AsBuiltReport.Nutanix.PrismElement.psm1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Get public function definition files and dot source them
$Public = @(Get-ChildItem -Path $PSScriptRoot\Src\Public\*.ps1)
$Private = @(Get-ChildItem -Path $PSScriptRoot\Src\Private\*.ps1)

foreach ($Module in @($Public + $Private)) {
    try {
        . $Module.FullName
    } catch {
        Write-Error -Message "Failed to import function $($Module.FullName): $_"
    }
}

Export-ModuleMember -Function $Public.BaseName
Export-ModuleMember -Function $Private.BaseName