@@ -44,11 +44,13 @@ Write-Host "`n"
4444$satDirecory = $PSScriptRoot + " \SAT"
4545
4646if (Test-Path - Path " $satDirecory \$satPackageName " ) {
47- Write-Host " SKIPPING - $satDirecory folder already contains the $satPackageName file"
47+ Write-Host " SKIPPING - $satDirecory folder already contains the $satPackageName file" - ForegroundColor Cyan
4848}
4949else {
5050 Write-Host " START - downloading the $satPackageName file from dev.sitecore.net"
5151 Invoke-WebRequest - Uri $satUrl - OutFile " $satDirecory \$satPackageName "
52+ Write-Host " `n "
53+ Write-Host " SUCCESS - Downloaded the $satPackageName file from dev.sitecore.net" - ForegroundColor Green
5254}
5355
5456Write-Host " `n "
@@ -58,15 +60,13 @@ Write-Host "`n"
5860Write-Host " START - [Sitecore Azure Toolkit extract]"
5961Write-Host " `n "
6062
61-
62-
6363if (-not (Test-Path " .\SAT\tools\Sitecore.Cloud.Cmdlets.dll" )) {
6464 Expand-Archive - Path " $satDirecory \$satPackageName " - DestinationPath " $satDirecory " - Force
65- Write-Host " SUCCESS - Extracted $satPackageName to the $satDirecory directory: "
65+ Write-Host " SUCCESS - Extracted $satPackageName to the $satDirecory directory" - ForegroundColor Green
6666 Write-Host " `n "
6767}
6868else {
69- Write-Host " SKIPPING - $satPackageName is already extracted to the $satDirecory directory"
69+ Write-Host " SKIPPING - $satPackageName is already extracted to the $satDirecory directory" - ForegroundColor Cyan
7070 Write-Host " `n "
7171}
7272
@@ -81,13 +81,51 @@ $destinationPath = $PSScriptRoot + "\scwpd"
8181Import-Module .\SAT\tools\Sitecore.Cloud.Cmdlets.psm1
8282Import-Module .\SAT\tools\Sitecore.Cloud.Cmdlets.dll
8383
84+ Remove-Item - Path $destinationPath - Recurse
85+
8486$scwdpPath = ConvertTo-SCModuleWebDeployPackage - Path $packagePath - Destination $destinationPath - Force
85- Write-Host " SUCCESS - Your Sitecore Module was converted to a Sitecore WebDeploy package and is located at:"
87+ Write-Host " SUCCESS - Your Sitecore Module was converted to a Sitecore WebDeploy package and is located at:" - ForegroundColor Green
8688Write-Host " `n "
8789Write-Host " $scwdpPath " - ForegroundColor Yellow
8890Write-Host " `n "
8991
9092Write-Host " =================================================================================================================================="
9193Write-Host " `n "
94+ Write-Host " START - [Creating Sitecore module asset image structure]"
95+ Write-Host " `n "
96+
97+ $moduleDirectory = $PSScriptRoot + " \Module"
98+ $cmContentDirectory = $moduleDirectory + " \cm\content"
99+ $dbDirectory = $moduleDirectory + " \db"
100+ $solrDirectory = $moduleDirectory + " \solr"
101+ $toolsDirectory = $moduleDirectory + " \tools"
102+
103+ If (! (Test-Path ($moduleDirectory ))) {
104+ New-Item - ItemType Directory - Force - Path $moduleDirectory
105+ }
106+
107+ Remove-Item - Path $moduleDirectory - Recurse
108+
109+ If (! (Test-Path ($cmContentDirectory ))) {
110+ New-Item - ItemType Directory - Force - Path $cmContentDirectory
111+ }
112+
113+ If (! (Test-Path ($dbDirectory ))) {
114+ New-Item - ItemType Directory - Force - Path $dbDirectory
115+ }
116+
117+ If (! (Test-Path ($solrDirectory ))) {
118+ New-Item - ItemType Directory - Force - Path $solrDirectory
119+ }
120+
121+ If (! (Test-Path ($toolsDirectory ))) {
122+ New-Item - ItemType Directory - Force - Path $toolsDirectory
123+ }
124+
125+ Write-Host " =================================================================================================================================="
126+ Write-Host " `n "
127+
128+ Show-Stop
92129
93- Show-Stop
130+ # Cleaning up the modules
131+ Get-Module | Remove-Module
0 commit comments