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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f67f6404a72167028cc78c1347bd67da39f57205
4
- data.tar.gz: d6fe99bbcc3f6b80d18319bb85b472ee0dd37abf
3
+ metadata.gz: e56849b1f39d18e773f6891980aecdab6086fddc
4
+ data.tar.gz: 7a7ce210e1588614a151492cde4e84e5b28ac3e9
5
5
  SHA512:
6
- metadata.gz: d73b47ee671274ed47e26b7d1a4b1dad79a7dd701fdc0af0fee4ba067425d30fd8608c29b7412884cd53b583733fc0d111545ed2cfd7021613bfd090a2b53a90
7
- data.tar.gz: 647c9fbd5a46351fc3ff195d21ddc9f9dde50b5e6631429ec4c71aa46ee16711aa2a932af0a0dd7578a3f1fa7a2ee83313de7d030b32931f770341e23f09dc3a
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
 
@@ -1,3 +1,3 @@
1
1
  module SpecInfra
2
- VERSION = "1.12.0"
2
+ VERSION = "1.13.0"
3
3
  end
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.12.0
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-10 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler