albacore 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2f8ea4557ba73f072a3025c1d2ae0d8b6c385a54
4
- data.tar.gz: 0c6dd38724e36bcec4847aed670d5f462cb1b0be
3
+ metadata.gz: 4746cc6a797c16e23c3a0dc1324b63f2197da52e
4
+ data.tar.gz: af4ceedc10060de2a1a64ce461e196c96bf82e67
5
5
  SHA512:
6
- metadata.gz: 808709c3627004c15972283d4486b1831bd8780f65d63ec48e122627b77fb23eb5d4d460ecaa8af3e9bdb7cb8a1ffc0efc0eec5bf46cdfc3459a51d7f6cf1541
7
- data.tar.gz: 58008d2c4c90f3e59c5831761d797c143d0fe7bf3f1cd8af46226296619c317aa46860045c9f0c72507c60627d9ba336cd4c071d8d3c1e9db2ef2b2d3a4702e7
6
+ metadata.gz: ffcbc1e64e71fea763f0cabb78b07401db53fda8145502236eb7ebffc09092840593213afde6ea38df26060c940d5893fdfb4b487ed84e48ed5d7c3f8e515efb
7
+ data.tar.gz: 0b5e1b50cb05f68846e479931617c2aaa2c97c454778e2b75b795e117867605b07c8e29e7cafa2e9416a9154ecc147f9ba72a0d9ab70b8924510efa7761ffbe8
@@ -1,3 +1,3 @@
1
1
  module Albacore
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
3
3
  end
@@ -6,7 +6,7 @@ Function Install-Site(
6
6
 
7
7
  # Where the source files are -- without any trailing slash or otherwise --
8
8
  # just the name, please.
9
- [string] $SourceDirectory = "contents",
9
+ [string] $CurrentPath = $(Get-Location).Path,
10
10
 
11
11
  # What domain name the site should bind to
12
12
  [string] $HostHeader,
@@ -17,6 +17,12 @@ Function Install-Site(
17
17
  # Name of site that you're setting up
18
18
  [string] $SiteName
19
19
  ) {
20
+
21
+ # relative to chocolatey
22
+ $parentDir = Split-Path -Parent $CurrentPath
23
+ # get sites content folder
24
+ $source = Join-Path $parentDir "contents\*"
25
+
20
26
  #site folder
21
27
  $siteInstallLocation = "$WebSiteRootFolder\$SiteName"
22
28
 
@@ -24,7 +30,7 @@ Function Install-Site(
24
30
  $siteAppPool = "$SiteName-pool"
25
31
 
26
32
  #check if the site is already present (determines update or install)
27
- $isPresent = Get-Website -name $siteName
33
+ $isPresent = Get-Website -name $siteName
28
34
 
29
35
  if($isPresent){
30
36
  # Upgrade the current package
@@ -39,7 +45,7 @@ Function Install-Site(
39
45
  new-item $siteInstallLocation -ItemType directory -Force
40
46
 
41
47
  # Copy site files to site folder
42
- Copy-Item "$SourceDirectory\*" -Recurse $siteInstallLocation -Force
48
+ Copy-Item $source -Recurse $siteInstallLocation -Force
43
49
 
44
50
  # Create application pool
45
51
  New-WebAppPool -Name $siteAppPool -Force
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.6
4
+ version: 2.0.7
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 00:00:00.000000000 Z
12
+ date: 2014-09-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake