@@ -50,7 +50,7 @@ function Create-ModulePsm1
5050 elseif ($mod [" RequiredVersion" ])
5151 {
5252 $importedModules += " Import-Module " + $mod [" ModuleName" ] + " -RequiredVersion " + $mod [" RequiredVersion" ] + " `r`n "
53- }
53+ }
5454 }
5555 }
5656
@@ -69,7 +69,7 @@ function Create-ModulePsm1
6969
7070 $contructedCommands = Find-DefaultResourceGroupCmdlets - AddDefaultParameters $AddDefaultParameters - ModuleMetadata $ModuleMetadata - ModulePath $ModulePath
7171 $template = $template -replace " %COMMANDS%" , $contructedCommands
72-
72+
7373 Write-Host " Writing psm1 manifest to $templateOutputPath "
7474 $template | Out-File - FilePath $templateOutputPath - Force
7575 $file = Get-Item - Path $templateOutputPath
@@ -86,7 +86,7 @@ function Find-DefaultResourceGroupCmdlets
8686 )
8787 PROCESS
8888 {
89- if ($AddDefaultParameters )
89+ if ($AddDefaultParameters )
9090 {
9191 $nestedModules = $ModuleMetadata.NestedModules
9292 $AllCmdlets = @ ()
@@ -96,9 +96,9 @@ function Find-DefaultResourceGroupCmdlets
9696 $dllCmdlets = $Assembly.GetTypes () | Where-Object {$_.CustomAttributes.AttributeType.Name -contains " CmdletAttribute" }
9797 $AllCmdlets += $dllCmdlets
9898 }
99-
99+
100100 $FilteredCommands = $AllCmdlets | Where-Object {Test-CmdletRequiredParameter - Cmdlet $_ - Parameter " ResourceGroupName" }
101-
101+
102102 if ($FilteredCommands.Length -eq 0 ) {
103103 $contructedCommands = " @()"
104104 }
@@ -109,7 +109,7 @@ function Find-DefaultResourceGroupCmdlets
109109 }
110110 $contructedCommands = $contructedCommands -replace " .$" , " )"
111111 }
112-
112+
113113 return $contructedCommands
114114 }
115115
@@ -144,7 +144,7 @@ function Test-CmdletRequiredParameter
144144 return $true
145145 }
146146 }
147-
147+
148148 return $false
149149 }
150150}
@@ -180,10 +180,10 @@ if ([string]::IsNullOrEmpty($buildConfig))
180180if ([string ]::IsNullOrEmpty($scope ))
181181{
182182 Write-Verbose " Default scope to all"
183- $scope = ' All'
183+ $scope = ' All'
184184}
185185
186- Write-Host " Updating $scope package(and its dependencies)"
186+ Write-Host " Updating $scope package(and its dependencies)"
187187
188188$packageFolder = " $PSScriptRoot \..\src\Package"
189189
@@ -209,21 +209,21 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureStorage')) {
209209 # Publish AzureStorage module
210210 Write-Host " Updating AzureStorage module from $modulePath "
211211 Create- ModulePsm1 - ModulePath $modulePath - TemplatePath $templateLocation $false
212- }
212+ }
213213
214214if (($scope -eq ' All' ) -or ($scope -eq ' ServiceManagement' )) {
215215 $modulePath = " $packageFolder \$buildConfig \ServiceManagement\Azure"
216216 # Publish Azure module
217217 Write-Host " Updating ServiceManagement(aka Azure) module from $modulePath "
218218 Create- ModulePsm1 - ModulePath $modulePath - TemplatePath $templateLocation $false
219- }
219+ }
220220
221221$resourceManagerModules = Get-ChildItem - Path $resourceManagerRootFolder - Directory
222- if ($scope -eq ' All' ) {
222+ if ($scope -eq ' All' ) {
223223 foreach ($module in $resourceManagerModules ) {
224- # filter out AzureRM.Profile which always gets published first
225- # And "Azure.Storage" which is built out as test dependencies
226- if (($module.Name -ne " AzureRM.Profile" ) -and ($module.Name -ne " Azure.Storage" ) -and ( ! $module .Name.Contains ( " Experiment " )) ) {
224+ # filter out AzureRM.Profile which always gets published first
225+ # And "Azure.Storage" which is built out as test dependencies
226+ if (($module.Name -ne " AzureRM.Profile" ) -and ($module.Name -ne " Azure.Storage" )) {
227227 $modulePath = $module.FullName
228228 Write-Host " Updating $module module from $modulePath "
229229 Create- ModulePsm1 - ModulePath $modulePath - TemplatePath $templateLocation $true
@@ -235,14 +235,14 @@ if ($scope -eq 'All') {
235235 if (Test-Path $modulePath ) {
236236 Write-Host " Updating $scope module from $modulePath "
237237 Create- ModulePsm1 - ModulePath $modulePath - TemplatePath $templateLocation $false
238- Write-Host " Updated $scope module"
238+ Write-Host " Updated $scope module"
239239 } else {
240240 Write-Error " Can not find module with name $scope to publish"
241241 }
242242}
243243
244244if (($scope -eq ' All' ) -or ($scope -eq ' AzureRM' )) {
245- # Update AzureRM module
245+ # Update AzureRM module
246246 if ($Profile -eq " Stack" )
247247 {
248248 $modulePath = " $PSScriptRoot \..\src\StackAdmin\AzureRM"
@@ -260,5 +260,5 @@ if (($scope -eq 'All') -or ($scope -eq 'AzureRM')) {
260260 Create- ModulePsm1 - ModulePath $modulePath - TemplatePath $templateLocation $false
261261 Write-Host " Updated Azure module"
262262 }
263- }
263+ }
264264
0 commit comments