specinfra 1.27.0 → 1.27.5
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cf132b8746de3ef1580b6c39ef553ee7b2459832
|
|
4
|
+
data.tar.gz: 03a3abbe7eadea2f0436b9363cc59737ab7bfc2a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ca0ab54768ea1818a89c2b3e96fc9dae37495a14e0aa1921b28c102b71178e83d978edd9721315ed67cf43dbfde54365e61a048c823ccf2ab3ded603469b6d58
|
|
7
|
+
data.tar.gz: a0e32824d098305ddac11e1c2bf19fc69c9848cb77bf77e1edf6b66786ee9bbb028a9e6c7f99035770671d24f931cc3e147c2d3b4ca94a3b1de9c9f2f38ab4fe
|
|
@@ -17,8 +17,13 @@ function FindIISAppPool
|
|
|
17
17
|
param($name)
|
|
18
18
|
|
|
19
19
|
Import-Module WebAdministration
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
Try {
|
|
21
|
+
Get-Item "IIS:\AppPools\$name" -Erroraction silentlycontinue
|
|
22
|
+
}
|
|
23
|
+
Catch [System.IO.FileNotFoundException] {
|
|
24
|
+
Get-Item "IIS:\AppPools\$name" -Erroraction silentlycontinue
|
|
25
|
+
|
|
26
|
+
}
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
function FindSiteBindings
|
|
@@ -26,8 +31,12 @@ function FindSiteBindings
|
|
|
26
31
|
param($name, $protocol, $hostHeader, $port, $ipAddress)
|
|
27
32
|
|
|
28
33
|
Import-Module WebAdministration
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
Try {
|
|
35
|
+
Get-WebBinding -Name $name -Protocol $protocol -HostHeader $hostHeader -Port $port -IPAddress $ipAddress
|
|
36
|
+
}
|
|
37
|
+
Catch [System.IO.FileNotFoundException] {
|
|
38
|
+
Get-WebBinding -Name $name -Protocol $protocol -HostHeader $hostHeader -Port $port -IPAddress $ipAddress
|
|
39
|
+
}
|
|
31
40
|
}
|
|
32
41
|
|
|
33
42
|
function FindSiteVirtualDir
|
|
@@ -77,4 +86,4 @@ function FindSiteApplication
|
|
|
77
86
|
}
|
|
78
87
|
|
|
79
88
|
$result
|
|
80
|
-
}
|
|
89
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
# encoding: utf-8
|
|
1
2
|
module SpecInfra
|
|
2
3
|
module Command
|
|
3
4
|
class Arch < Linux
|
|
@@ -7,7 +8,7 @@ module SpecInfra
|
|
|
7
8
|
|
|
8
9
|
def check_enabled(service, level)
|
|
9
10
|
level = "multi-user.target" if level == 3
|
|
10
|
-
"systemctl --plain list-dependencies #{level} | grep '
|
|
11
|
+
"systemctl --plain list-dependencies #{level} | grep '^● #{escape(service)}.service$'"
|
|
11
12
|
end
|
|
12
13
|
|
|
13
14
|
def check_running(service)
|
|
@@ -16,12 +17,12 @@ module SpecInfra
|
|
|
16
17
|
|
|
17
18
|
def check_installed(package,version=nil)
|
|
18
19
|
if version
|
|
19
|
-
|
|
20
|
+
grep = version.include?('-') ? "^#{escape(version)}$" : "^#{escape(version)}-"
|
|
21
|
+
"pacman -Q #{escape(package)} | awk '{print $2}' | grep '#{grep}'"
|
|
20
22
|
else
|
|
21
|
-
"pacman -Q
|
|
23
|
+
"pacman -Q #{escape(package)}"
|
|
22
24
|
end
|
|
23
25
|
end
|
|
24
|
-
|
|
25
26
|
def sync_repos
|
|
26
27
|
"pacman -Syy"
|
|
27
28
|
end
|
|
@@ -2,8 +2,12 @@ module SpecInfra
|
|
|
2
2
|
module Command
|
|
3
3
|
class Debian < Linux
|
|
4
4
|
def check_enabled(service, level=3)
|
|
5
|
-
#
|
|
6
|
-
|
|
5
|
+
# Debian jessie default init system (on Linux) is systemd,
|
|
6
|
+
# but upstart and sysvinit is also available.
|
|
7
|
+
cmd = "if [ -d /run/systemd/system ]; then systemctl --plain list-dependencies runlevel#{level}.target | grep '^#{escape(service)}.service$'; "
|
|
8
|
+
cmd += "else ls /etc/rc#{level}.d/ | grep -- '^S..#{escape(service)}' || grep 'start on' /etc/init/#{escape(service)}.conf; "
|
|
9
|
+
cmd += "fi"
|
|
10
|
+
"sh -c \"#{cmd}\""
|
|
7
11
|
end
|
|
8
12
|
|
|
9
13
|
def check_installed(package, version=nil)
|
|
@@ -2,7 +2,7 @@ module SpecInfra
|
|
|
2
2
|
module Command
|
|
3
3
|
class OpenBSD < Base
|
|
4
4
|
def check_enabled(service, level=3)
|
|
5
|
-
"
|
|
5
|
+
"rcctl status #{escape(service)}"
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
def check_file_md5checksum(file, expected)
|
|
@@ -76,7 +76,7 @@ module SpecInfra
|
|
|
76
76
|
# end
|
|
77
77
|
|
|
78
78
|
def check_running(service)
|
|
79
|
-
"
|
|
79
|
+
"rcctl check #{escape(service)}"
|
|
80
80
|
end
|
|
81
81
|
|
|
82
82
|
def get_mode(file)
|
data/lib/specinfra/version.rb
CHANGED
data/wercker.yml
CHANGED
|
@@ -26,35 +26,39 @@ build:
|
|
|
26
26
|
name: Run vagrant up centos65
|
|
27
27
|
code: vagrant up centos65 --provider=digital_ocean
|
|
28
28
|
cwd: $WORKING_DIR
|
|
29
|
+
- script:
|
|
30
|
+
name: Run itamae
|
|
31
|
+
code: bundle exec itamae ssh --host centos65 --vagrant recipe.rb
|
|
32
|
+
cwd: $WORKING_DIR
|
|
29
33
|
- script:
|
|
30
34
|
name: Run vagrant reload centos65
|
|
31
35
|
code: vagrant reload centos65
|
|
32
36
|
cwd: $WORKING_DIR
|
|
33
37
|
- script:
|
|
34
38
|
name: Run rake spec:centos65
|
|
35
|
-
code: rake spec:centos65
|
|
39
|
+
code: DIGITALOCEAN=true rake spec:centos65
|
|
36
40
|
cwd: $WORKING_DIR
|
|
37
41
|
- script:
|
|
38
42
|
name: Run vagrant up ubuntu1404
|
|
39
43
|
code: vagrant up ubuntu1404 --provider=digital_ocean
|
|
40
44
|
cwd: $WORKING_DIR
|
|
45
|
+
- script:
|
|
46
|
+
name: Run itamae
|
|
47
|
+
code: bundle exec itamae ssh --host ubuntu1404 --vagrant recipe.rb
|
|
48
|
+
cwd: $WORKING_DIR
|
|
41
49
|
- script:
|
|
42
50
|
name: Run vagrant reload ubuntu1404
|
|
43
51
|
code: vagrant reload ubuntu1404
|
|
44
52
|
cwd: $WORKING_DIR
|
|
45
53
|
- script:
|
|
46
54
|
name: Run rake spec:ubuntu1404
|
|
47
|
-
code: rake spec:ubuntu1404
|
|
55
|
+
code: DIGITALOCEAN=true rake spec:ubuntu1404
|
|
48
56
|
cwd: $WORKING_DIR
|
|
49
57
|
|
|
50
58
|
after-steps:
|
|
51
59
|
- script:
|
|
52
|
-
name: Run vagrant destroy
|
|
53
|
-
code: vagrant destroy
|
|
54
|
-
cwd: $WORKING_DIR
|
|
55
|
-
- script:
|
|
56
|
-
name: Run vagrant destroy ubuntu1404
|
|
57
|
-
code: vagrant destroy ubuntu1404 --force
|
|
60
|
+
name: Run vagrant destroy
|
|
61
|
+
code: vagrant destroy --force
|
|
58
62
|
cwd: $WORKING_DIR
|
|
59
63
|
- 1syo/idobata-notify@0.1.1:
|
|
60
64
|
token: $IDOBATA_TOKEN
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: specinfra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.27.
|
|
4
|
+
version: 1.27.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gosuke Miyashita
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-09-
|
|
11
|
+
date: 2014-09-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|