Skip to content

Commit 63229e4

Browse files
committed
Added Stack psm1 generation.
1 parent deceb14 commit 63229e4

File tree

1 file changed

+15
-4
lines changed

1 file changed

+15
-4
lines changed

tools/UpdateModules.ps1

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ function Update-Azure {
309309
if ($scope -in $script:StorageScopes) {
310310
$modulePath = "$script:AzurePackages\$buildConfig\Storage\Azure.Storage"
311311
Write-Host "Updating AzureStorage module from $modulePath"
312-
New-ModulePsm1 -ModulePath $modulePath -TemplatePath $templateLocation -IsRMModule:$false
312+
New-ModulePsm1 -ModulePath $modulePath -TemplatePath $script:TemplateLocation -IsRMModule:$false
313313
Write-Host " "
314314
}
315315

@@ -359,13 +359,23 @@ function Update-Stack {
359359

360360
$modulePath = "$script:StackPackages\$buildConfig\Storage\Azure.Storage"
361361
Write-Host "Updating AzureStorage module from $modulePath"
362-
New-ModulePsm1 -ModulePath $modulePath -TemplatePath $templateLocation -IsRMModule:$false
362+
New-ModulePsm1 -ModulePath $modulePath -TemplatePath $script:TemplateLocation -IsRMModule:$false
363363
Write-Host " "
364364

365365
$StackRMModules = Get-ChildItem -Path $script:StackRMRoot -Directory
366366
Write-Host "Updating stack modules"
367367
Update-RMModule -Modules $StackRMModules
368368
Write-Host " "
369+
370+
$modulePath = "$script:StackProjects\AzureRM"
371+
Write-Host "Updating AzureRM module from $modulePath"
372+
New-ModulePsm1 -ModulePath $modulePath -TemplatePath $script:TemplateLocation
373+
Write-Host " "
374+
375+
$modulePath = "$script:StackProjects\AzureStack"
376+
Write-Host "Updating AzureStack module from $modulePath"
377+
New-ModulePsm1 -ModulePath $modulePath -TemplatePath $script:TemplateLocation
378+
Write-Host " "
369379
}
370380

371381
<#
@@ -423,8 +433,9 @@ $script:StorageScopes = @('All', 'Latest', 'AzureStorage')
423433
$script:ServiceScopes = @('All', 'Latest', 'ServiceManagement')
424434

425435
# Package locations
426-
$script:AzurePackages = "$PSSCriptRoot\..\src\Package"
427-
$script:StackPackages = "$PSSCriptRoot\..\src\Stack"
436+
$script:AzurePackages = "$PSScriptRoot\..\src\Package"
437+
$script:StackPackages = "$PSScriptRoot\..\src\Stack"
438+
$script:StackProjects = "$PSScriptRoot\..\src\StackAdmin"
428439

429440
# Resource Management folders
430441
$script:AzureRMRoot = "$script:AzurePackages\$buildConfig\ResourceManager\AzureResourceManager"

0 commit comments

Comments
 (0)