Skip to content

Commit 75a5968

Browse files
committed
Added in the extracting of the scwdp file + displaying the generated tree
1 parent 2bb4906 commit 75a5968

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Create-SitecoreModule-DockerAssetImage.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@ else {
101101
Write-Host "$scwdpPath" -ForegroundColor Yellow
102102
Write-Host "`n"
103103

104+
Write-Host "=================================================================================================================================="
105+
Write-Host "`n"
106+
Write-Host "START - [Extracting Sitecore WebDeploy package]"
107+
Write-Host "`n"
108+
109+
$extractSCwdpDirectory = $scwdpDirectory + "\extract"
110+
111+
If (!(Test-Path($extractSCwdpDirectory))) {
112+
New-Item -ItemType Directory -Force -Path $extractSCwdpDirectory
113+
}
114+
115+
Expand-Archive -Path "$scwdpPath" -DestinationPath "$extractSCwdpDirectory" -Force
116+
104117
Write-Host "=================================================================================================================================="
105118
Write-Host "`n"
106119
Write-Host "START - [Creating Sitecore module asset image structure]"
@@ -136,6 +149,14 @@ else {
136149

137150
Write-Host "=================================================================================================================================="
138151
Write-Host "`n"
152+
Write-Host "SUCCESS - Succesfully created the Docker Asset Image structure in directory $moduleDirectory" -ForegroundColor Green
153+
Write-Host "`n"
154+
155+
tree $moduleDirectory /a
156+
157+
Write-Host "`n"
158+
Write-Host "=================================================================================================================================="
159+
Write-Host "`n"
139160
}
140161

141162

0 commit comments

Comments
 (0)