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 +4 -4
- data/lib/albacore/version.rb +1 -1
- data/resources/installSite.ps1 +9 -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: 4746cc6a797c16e23c3a0dc1324b63f2197da52e
|
4
|
+
data.tar.gz: af4ceedc10060de2a1a64ce461e196c96bf82e67
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffcbc1e64e71fea763f0cabb78b07401db53fda8145502236eb7ebffc09092840593213afde6ea38df26060c940d5893fdfb4b487ed84e48ed5d7c3f8e515efb
|
7
|
+
data.tar.gz: 0b5e1b50cb05f68846e479931617c2aaa2c97c454778e2b75b795e117867605b07c8e29e7cafa2e9416a9154ecc147f9ba72a0d9ab70b8924510efa7761ffbe8
|
data/lib/albacore/version.rb
CHANGED
data/resources/installSite.ps1
CHANGED
@@ -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] $
|
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
|
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.
|
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
|
+
date: 2014-09-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|