-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathZeroDSC.psm1
38 lines (30 loc) · 840 Bytes
/
ZeroDSC.psm1
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
34
35
36
37
38
Import-Module PSDesiredStateConfiguration
$moduleRoot = Split-Path -Path $MyInvocation.MyCommand.Path
# dot source the external dependencies...
"$moduleRoot\External\*.ps1" |
Get-Item |
? { $_.Name -notmatch 'Tests\.ps1$' } |
% { . $_.FullName }
# ...then the type files...
. "$moduleRoot\Functions\LoadTypes.ps1"
# ...and then the remaining .ps1 files
"$moduleRoot\Functions\*.ps1" |
Get-Item |
? {
$_.Name -notmatch 'Tests\.ps1$' -and
$_.Name -notmatch 'Types?\.ps1$'
} |
% { . $_.FullName }
Export-ModuleMember -Function @(
'Import-DscResource'
'Import-DscFunction'
'ConfigInstructions'
'Invoke-ConfigStep'
'Test-ConfigStep'
'New-ResourceInvoker'
'Invoke-ResourceCommand'
'New-RawResourceConfigInfo'
)
Export-ModuleMember -Alias @(
'Aggregate'
)