Skip to content

Commit

Permalink
cleanup remove comments [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
jworkmanjc committed Jul 13, 2022
1 parent ec1db1b commit 6ad3476
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions PowerShell/Deploy/Setup-Dependencies.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Param(
# [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 0)][System.String[]]$DependentModules = ('PowerShellGet', 'PackageManagement', 'PSScriptAnalyzer', 'PlatyPS', 'Pester', 'AWS.Tools.Common', 'AWS.Tools.CodeArtifact')
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 0)][System.String]$RequiredModulesRepo = 'PSGallery'
)
# Install NuGet
Expand Down Expand Up @@ -32,30 +31,6 @@ foreach ($RequiredModule in $PSDependencies.Keys)
Import-Module -Name:($RequiredModule) -Force -Global
}
}
# # Install dependent modules
# ForEach ($DependentModule In $DependentModules)
# {
# # Check to see if the module is installed
# If ([System.String]::IsNullOrEmpty((Get-InstalledModule | Where-Object { $_.Name -eq $DependentModule })))
# {
# Write-Host("[status]Installing module: '$DependentModule' from 'PSGallery'")
# if ($DependentModule -eq 'PowerShellGet'){
# Install-Module -Name $DependentModule -Repository:('PSGallery') -RequiredVersion '3.0.12-beta' -AllowPrerelease -Force
# }
# elseif ($DependentModule -eq 'PSScriptAnalyzer') {
# Install-Module -Name $DependentModule -Repository:('PSGallery') -RequiredVersion '1.19.1' -Force
# }
# else{
# Install-Module -Repository:('PSGallery') -Force -Name:($DependentModule) -Scope:('CurrentUser') -AllowClobber
# }
# }
# # Get-Module -Refresh -ListAvailable
# If ([System.String]::IsNullOrEmpty((Get-Module | Where-Object { $_.Name -eq $DependentModule })))
# {
# Write-Host("[status]Importing module: '$DependentModule'")
# Import-Module -Name:($DependentModule) -Force -Global
# }
# }
### TODO: Switch to CodeArtifact
If ($RequiredModulesRepo -ne 'PSGallery')
{
Expand Down

0 comments on commit 6ad3476

Please sign in to comment.