Skip to content

Commit

Permalink
Merge pull request #8 from patrickperrone/hardcoded-url
Browse files Browse the repository at this point in the history
Hardcoded url, fixes #6
  • Loading branch information
patrickperrone committed Oct 23, 2015
2 parents b810215 + cb02a44 commit 6420852
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion SitecoreShipFunctions.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
@{

# Version number of this module.
ModuleVersion = '1.1'
ModuleVersion = '1.1.01'

# ID used to uniquely identify this module
GUID = '1b83fbdb-f779-4cef-bbC5-b289a114eef4'
Expand Down
7 changes: 2 additions & 5 deletions SitecoreShipFunctions.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ function Get-SitecoreShipLastCompletedPublish
$scheme = "https"
}

$servicePath = "/services/publish"
$servicePath = "/services/publish/lastcompleted"
if (![string]::IsNullOrWhiteSpace($PublishSource))
{
$servicePath += "/" + $PublishSource.ToLower()
Expand All @@ -655,10 +655,7 @@ function Get-SitecoreShipLastCompletedPublish
}
$serviceUrl = "{0}://{1}{2}" -f $scheme,$HostName,$servicePath

write-host $serviceUrl

$time = Invoke-RestMethod "http://sitecoreshippoc/services/publish/lastcompleted" -Method GET -TimeoutSec $Timeout

$time = Invoke-RestMethod $serviceUrl -Method GET -TimeoutSec $Timeout
if (!$ResultAsUniversalTime)
{
$time = $time.ToLocalTime()
Expand Down

0 comments on commit 6420852

Please sign in to comment.