Skip to content

Commit

Permalink
Merge pull request #234 from TheJumpCloud/JumpCloudModule_1.17.2
Browse files Browse the repository at this point in the history
Jump cloud module 1.17.2
  • Loading branch information
jworkmanjc authored May 20, 2020
2 parents 17b3f6c + 260d08c commit 0852922
Show file tree
Hide file tree
Showing 5 changed files with 1,367 additions and 1,347 deletions.
4 changes: 2 additions & 2 deletions PowerShell/JumpCloud Module/JumpCloud.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Generated by: JumpCloud Solutions Architect Team
#
# Generated on: 5/4/2020
# Generated on: 5/19/2020
#

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

# Version number of this module.
ModuleVersion = '1.17.1'
ModuleVersion = '1.17.2'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ Function Update-JCModule
$ModuleChangeLogLatestVersion = $ModuleChangeLog | Where-Object { $_.Version -eq $UpdateTrigger }
# To change update dependency from PowerShell Gallery to Github flip the commented code below
###### $LatestVersionReleaseDate = $ModuleChangeLogLatestVersion.'RELEASE DATE'
$LatestVersionReleaseDate = (Find-Module -Name:($ModuleName) | ForEach-Object { $_.Version + ' (' + (Get-Date $_.PublishedDate).ToString('MMMM dd, yyyy') + ')' })
$LatestVersionReleaseDate = (Find-Module -Name:($ModuleName) | ForEach-Object { ($_.Version).ToString() + ' (' + (Get-Date $_.PublishedDate).ToString('MMMM dd, yyyy') + ')' })
# Build welcome page
$WelcomePage = New-Object -TypeName:('PSCustomObject') | Select-Object `
@{Name = 'MESSAGE'; Expression = { $ModuleBanner.'Banner Current' } } `
, @{Name = 'INSTALLED VERSION(S)'; Expression = { $InstalledModulePreUpdate | ForEach-Object { $_.Version + ' (' + (Get-Date $_.PublishedDate).ToString('MMMM dd, yyyy') + ')' } } } `
, @{Name = 'INSTALLED VERSION(S)'; Expression = { $InstalledModulePreUpdate | ForEach-Object { ($_.Version).ToString() + ' (' + (Get-Date $_.PublishedDate).ToString('MMMM dd, yyyy') + ')' } } } `
, @{Name = 'LATEST VERSION'; Expression = { $UpdateTrigger + ' (' + (Get-Date $LatestVersionReleaseDate).ToString('MMMM dd, yyyy') + ')' } } `
, @{Name = 'RELEASE NOTES'; Expression = { $ModuleChangeLogLatestVersion.'RELEASE NOTES' } } `
, @{Name = 'FEATURES'; Expression = { $ModuleChangeLogLatestVersion.'FEATURES' } } `
Expand Down Expand Up @@ -118,7 +118,7 @@ Function Update-JCModule
{
$InstalledModulePreUpdate | ForEach-Object {
Write-Host ('Uninstalling ' + $_.Name + ' module version: ') -BackgroundColor:($JCColorConfig.BackgroundColor) -ForegroundColor:($JCColorConfig.ForegroundColor_Action) -NoNewline
Write-Host ($_.Version) -BackgroundColor:($JCColorConfig.BackgroundColor) -ForegroundColor:($JCColorConfig.ForegroundColor_Body)
Write-Host (($_.Version).ToString()) -BackgroundColor:($JCColorConfig.BackgroundColor) -ForegroundColor:($JCColorConfig.ForegroundColor_Body)
$_ | Uninstall-Module -Force
}
}
Expand Down
Loading

0 comments on commit 0852922

Please sign in to comment.