forked from docker-archive/communitytools-image2docker-win
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathImage2Docker.psm1
More file actions
34 lines (26 loc) · 863 Bytes
/
Image2Docker.psm1
File metadata and controls
34 lines (26 loc) · 863 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
34
#requires -runasadministrator
enum ImageType {
Unknown
VHDX
WIM
}
enum SourceType {
Image
Local
Remote
}
### Obtain the module path
$ModulePath = $ExecutionContext.SessionState.Module.ModuleBase
### Import private (internal) functions
$PrivateFunctionList = Get-ChildItem -Path $PSScriptRoot\Functions\Private -File -Filter *.ps1 -Recurse | Where-Object {$_.name -NotMatch "Tests.ps1"}
foreach ($File in $PrivateFunctionList) {
. $File.FullName
}
Remove-Variable -Name File
### Import public-facing functions
$PublicFunctionList = Get-ChildItem -Path $PSScriptRoot\Functions\Public -File -Filter *.ps1 -Recurse | Where-Object {$_.name -NotMatch "Tests.ps1"}
foreach ($File in $PublicFunctionList) {
. $File.FullName
}
Remove-Variable -Name File
Get-ChildItem -Path $PSScriptRoot\completers\*.ps1 | foreach { . $_.FullName}