serverspec 2.11.0 → 2.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec/type/service.rb +15 -0
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/wercker.yml +1 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af30e8f3279e309d3483d5045435e4be4557e10
|
4
|
+
data.tar.gz: 946da32921541e864b3d6c0efd939d9f51a4f187
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c64785941e9b863867a05e05f34e7281bbc0039ab6a43d66ce5c00c535d699a59c8990217636fa7be3dd0d9138b9cd9362c6927c23ac31b31aa5647789db02e
|
7
|
+
data.tar.gz: d01be38c2c33742698da14a6627cff620fbdb6250d81e44ebd7bcd5450a5d0e9cc1eb48932439095a66dc1bf341481aa2bc66fb42640687749a3bf68a5be1851
|
@@ -33,5 +33,20 @@ module Serverspec::Type
|
|
33
33
|
def has_property?(property)
|
34
34
|
@runner.check_service_has_property(@name, property)
|
35
35
|
end
|
36
|
+
|
37
|
+
def property
|
38
|
+
get_property if @property.nil?
|
39
|
+
@property
|
40
|
+
end
|
41
|
+
|
42
|
+
private
|
43
|
+
def get_property
|
44
|
+
@property = {}
|
45
|
+
props = @runner.get_service_property(@name).stdout
|
46
|
+
props.split(/\n/).each do |line|
|
47
|
+
property, _type, *value = line.split(/\s+/)
|
48
|
+
@property[property] = value.join(' ')
|
49
|
+
end
|
50
|
+
end
|
36
51
|
end
|
37
52
|
end
|
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.add_runtime_dependency "rspec", "~> 3.0"
|
22
22
|
spec.add_runtime_dependency "rspec-its"
|
23
23
|
spec.add_runtime_dependency "multi_json"
|
24
|
-
spec.add_runtime_dependency "specinfra", "~> 2.
|
24
|
+
spec.add_runtime_dependency "specinfra", "~> 2.23"
|
25
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
26
26
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
27
27
|
end
|
data/wercker.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.12.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: 2015-03-
|
11
|
+
date: 2015-03-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -58,14 +58,14 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.23'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.23'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|