Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
add platform=posh parameter to version list and download
Browse files Browse the repository at this point in the history
  • Loading branch information
flofreud committed May 3, 2014
1 parent aa82058 commit 94ca330
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Utils.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,7 @@ Describe 'Write-Version-List' {
Mock Write-Output
Mock Get-Current-Candidate-Version { '1.1.1' } -parameterFilter { $Candidate -eq 'grails' }
Mock Get-Installed-Candidate-Version-List { return '1.1.1','2.2.2','2.3.0' } -parameterFilter { $Candidate -eq 'grails' }
Mock Invoke-API-Call { 'bla' } -parameterFilter { $Path -eq 'candidates/grails/list?current=1.1.1&installed=1.1.1,2.2.2,2.3.0' }
Mock Invoke-API-Call { 'bla' } -parameterFilter { $Path -eq 'candidates/grails/list?platform=posh&current=1.1.1&installed=1.1.1,2.2.2,2.3.0' }

Write-Version-List grails

Expand Down
4 changes: 2 additions & 2 deletions Utils.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ function Write-Version-List($Candidate) {

$current = Get-Current-Candidate-Version $Candidate
$versions = (Get-Installed-Candidate-Version-List $Candidate) -join ','
Invoke-API-Call "candidates/$Candidate/list?current=$current&installed=$versions" | Write-Output
Invoke-API-Call "candidates/$Candidate/list?platform=posh&current=$current&installed=$versions" | Write-Output
}

function Install-Local-Version($Candidate, $Version, $LocalPath) {
Expand Down Expand Up @@ -304,7 +304,7 @@ function Install-Remote-Version($Candidate, $Version) {
} else {
Check-Online-Mode
Write-Output "`nDownloading: $Candidate $Version`n"
Download-File "$Script:PGVM_SERVICE/download/$Candidate/$Version" $archive
Download-File "$Script:PGVM_SERVICE/download/$Candidate/$Version?platform=posh" $archive
}

Write-Output "Installing: $Candidate $Version"
Expand Down

0 comments on commit 94ca330

Please sign in to comment.