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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7b1a42269adc627c1f4e025c66ad10b973ca1668
4
- data.tar.gz: 586c17f50cbcc10dd2fb998c64302844f043412f
3
+ metadata.gz: 3c37901d765902a9bac99144dc3050c7929781f2
4
+ data.tar.gz: 3ec8ff7080793319b19b7f518759b50a2dd18f47
5
5
  SHA512:
6
- metadata.gz: 0da81b4f4e93d7c32e040d5cd7b2bb534957e2e7b7fedc00a26d01bff1eea8a6ba6f5423629537fa85f0f519f9f5152de555fda5b9f1af02a4d1ecf756abdb2e
7
- data.tar.gz: 3c932e2fc20639152bf5eb74d1f320f44d535e7e30b5786c3c86b98225be577336db550af04e6db35a0276ee25c3d5c1f8926de239923af6405c09c71c424c8d
6
+ metadata.gz: 10604d00e5b439683e46ff300cce319e80de441e9a61afd450902335394e911c73eb70563d557ecdf6adac09ccb82f9b81b65504ef2e2331742ad221b3e55fd7
7
+ data.tar.gz: 361b3a6a637174d56131cd3d5d305b4438a915ea0ddf081d5ea0038461478980e76e5669649ead018b4e97bfb46bd748a358d013d50c5c777e33644707f3839a
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.0.8"
2
+ VERSION = "2.0.9"
3
3
  end
@@ -26,7 +26,11 @@ Function System([string] $Command, [Switch] $Silent) {
26
26
  }
27
27
 
28
28
  Function Get-ServiceVersion([string] $ServiceExePath) {
29
- (ls $ServiceExePath | Select-Object -First 1).VersionInfo.FileVersion.ToString()
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) {
@@ -28,9 +28,19 @@ Function Install-Site(
28
28
  $isPresent = Get-Website -name $siteName
29
29
 
30
30
  if($isPresent){
31
- # Upgrade the current package
32
- Write-Host "$SiteName will be updated"
33
- Copy-Item "$SourceDirectory\*" -Recurse $siteInstallLocation -Force
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.8
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-17 00:00:00.000000000 Z
12
+ date: 2014-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake