From 66c2b3d6e34f6aa7cfbfc488bb39d67cfe259e5d Mon Sep 17 00:00:00 2001 From: Patrick Perrone Date: Thu, 22 Oct 2015 15:56:18 -0400 Subject: [PATCH 1/2] Update SitecoreShipFunctions.psm1 --- SitecoreShipFunctions.psm1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/SitecoreShipFunctions.psm1 b/SitecoreShipFunctions.psm1 index 424039f..f2b2d3e 100644 --- a/SitecoreShipFunctions.psm1 +++ b/SitecoreShipFunctions.psm1 @@ -640,7 +640,7 @@ function Get-SitecoreShipLastCompletedPublish $scheme = "https" } - $servicePath = "/services/publish" + $servicePath = "/services/publish/lastcompleted" if (![string]::IsNullOrWhiteSpace($PublishSource)) { $servicePath += "/" + $PublishSource.ToLower() @@ -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() From cb02a44d79284d8836eb8cfa89fb76f551c7968b Mon Sep 17 00:00:00 2001 From: Patrick Perrone Date: Thu, 22 Oct 2015 16:20:44 -0400 Subject: [PATCH 2/2] Update SitecoreShipFunctions.psd1 --- SitecoreShipFunctions.psd1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SitecoreShipFunctions.psd1 b/SitecoreShipFunctions.psd1 index 3c20646..b31c2ec 100644 --- a/SitecoreShipFunctions.psd1 +++ b/SitecoreShipFunctions.psd1 @@ -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'