-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHyperVClusterPlatform.psm1
More file actions
33 lines (27 loc) · 1019 Bytes
/
HyperVClusterPlatform.psm1
File metadata and controls
33 lines (27 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# HyperVClusterPlatform.psm1
# Loader that dot-sources Private + Public functions
$ErrorActionPreference = 'Stop'
# Dot-source Private functions
Get-ChildItem -Path (Join-Path $PSScriptRoot 'Private') -Filter '*.ps1' |
Sort-Object Name |
ForEach-Object {
. $_.FullName
}
# Dot-source Public functions
Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public') -Filter '*.ps1' |
Sort-Object Name |
ForEach-Object {
. $_.FullName
}
if (Get-Command Initialize-HVCommandAliases -ErrorAction SilentlyContinue) {
Initialize-HVCommandAliases
}
# Export supported entry points plus selected operational commands documented for users
$publicFunctions = Get-ChildItem -Path (Join-Path $PSScriptRoot 'Public') -Filter '*.ps1' |
ForEach-Object { $_.BaseName }
$documentedOperationalFunctions = @(
'Get-HVClusterHealth'
'Invoke-HVHealthAlertPolicy'
'Invoke-HVCertificationSuite'
)
Export-ModuleMember -Function ($publicFunctions + $documentedOperationalFunctions | Sort-Object -Unique)