albacore 2.0.8 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/albacore/version.rb +1 -1
- data/resources/chocolateyInstall.ps1 +5 -1
- data/resources/installSite.ps1 +13 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c37901d765902a9bac99144dc3050c7929781f2
|
4
|
+
data.tar.gz: 3ec8ff7080793319b19b7f518759b50a2dd18f47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10604d00e5b439683e46ff300cce319e80de441e9a61afd450902335394e911c73eb70563d557ecdf6adac09ccb82f9b81b65504ef2e2331742ad221b3e55fd7
|
7
|
+
data.tar.gz: 361b3a6a637174d56131cd3d5d305b4438a915ea0ddf081d5ea0038461478980e76e5669649ead018b4e97bfb46bd748a358d013d50c5c777e33644707f3839a
|
data/lib/albacore/version.rb
CHANGED
@@ -26,7 +26,11 @@ Function System([string] $Command, [Switch] $Silent) {
|
|
26
26
|
}
|
27
27
|
|
28
28
|
Function Get-ServiceVersion([string] $ServiceExePath) {
|
29
|
-
|
29
|
+
try{
|
30
|
+
(ls $ServiceExePath | Select-Object -First 1).VersionInfo.FileVersion.ToString()
|
31
|
+
} catch {
|
32
|
+
throw (New-Object System.InvalidOperationException "$ServiceExeName is missing a fileversion, did you add a assembly version to it?")
|
33
|
+
}
|
30
34
|
}
|
31
35
|
|
32
36
|
Function Copy-WithBackup([string] $Source, [string] $Target, [string] $ServiceExePath) {
|
data/resources/installSite.ps1
CHANGED
@@ -28,9 +28,19 @@ Function Install-Site(
|
|
28
28
|
$isPresent = Get-Website -name $siteName
|
29
29
|
|
30
30
|
if($isPresent){
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
try{
|
32
|
+
# Upgrade the current package
|
33
|
+
Write-Host -ForegroundColor Yellow "$SiteName will be updated"
|
34
|
+
Write-Host -ForegroundColor Yellow "stopping $siteAppPool"
|
35
|
+
Stop-WebAppPool $siteAppPool
|
36
|
+
Write-Host -ForegroundColor Yellow "successfullty stopped $siteAppPool"
|
37
|
+
Copy-Item "$source" -Recurse $siteInstallLocation -Force
|
38
|
+
Write-Host -ForegroundColor Green "$SiteName is updated"
|
39
|
+
} finally {
|
40
|
+
Write-Host -ForegroundColor Green "starting $siteAppPool"
|
41
|
+
Start-WebAppPool $siteAppPool
|
42
|
+
Write-Host -ForegroundColor Green "successfully $siteAppPool"
|
43
|
+
}
|
34
44
|
} else {
|
35
45
|
# Install a clean version of the package
|
36
46
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: albacore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrik Feldt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-09-
|
12
|
+
date: 2014-09-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|