specinfra 1.12.0 → 1.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/specinfra/command/ubuntu.rb +8 -0
- data/lib/specinfra/helper/detect_os.rb +0 -2
- data/lib/specinfra/version.rb +1 -1
- 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: e56849b1f39d18e773f6891980aecdab6086fddc
|
4
|
+
data.tar.gz: 7a7ce210e1588614a151492cde4e84e5b28ac3e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a5cd5abacff86755954849d0426c4b9a183be90f8b86e33c09b0893b3b26ff0e468c5312b5d0fd2c6d515c593d9fec5a60b7cfddd9b97e43307ba1a393e51c3
|
7
|
+
data.tar.gz: 390acfb27640810eb58dd3cd664e458d912c62054470d0cbf30d5663a0af57e972cdb37e9286090b47bff80a482684c0a871619ec3c6604917b8bf5852871a21
|
@@ -4,6 +4,14 @@ module SpecInfra
|
|
4
4
|
def check_running(service)
|
5
5
|
"service #{escape(service)} status && service #{escape(service)} status | grep 'running'"
|
6
6
|
end
|
7
|
+
|
8
|
+
def check_ppa(package)
|
9
|
+
"find /etc/apt/ -name \*.list | xargs grep -o \"deb http://ppa.launchpad.net/#{package}\""
|
10
|
+
end
|
11
|
+
|
12
|
+
def check_ppa_enabled(package)
|
13
|
+
"find /etc/apt/ -name \*.list | xargs grep -o \"^deb http://ppa.launchpad.net/#{package}\""
|
14
|
+
end
|
7
15
|
end
|
8
16
|
end
|
9
17
|
end
|
@@ -13,9 +13,7 @@ module SpecInfra
|
|
13
13
|
os_by_host = property[:os_by_host][host]
|
14
14
|
else
|
15
15
|
# Set command object explicitly to avoid `stack too deep`
|
16
|
-
raise "crash me" if caller.length > 500
|
17
16
|
os_by_host = backend(SpecInfra::Command::Base.new).check_os
|
18
|
-
|
19
17
|
property[:os_by_host][host] = os_by_host
|
20
18
|
end
|
21
19
|
|
data/lib/specinfra/version.rb
CHANGED
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.
|
4
|
+
version: 1.13.0
|
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-05-
|
11
|
+
date: 2014-05-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|