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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75b332102cbf689440311743fbff8d5d2111d38c
4
- data.tar.gz: ec476918889a36ae085f9c9d993192f67e0aadaf
3
+ metadata.gz: 2af30e8f3279e309d3483d5045435e4be4557e10
4
+ data.tar.gz: 946da32921541e864b3d6c0efd939d9f51a4f187
5
5
  SHA512:
6
- metadata.gz: a6d0071d605d6606f6ab099f59970f0ce28b459eb0f7140545b5c2e78d9d940d1a689adddf197c92a9dcee4270326cd9e16e38d8c3144d0ddba3e5d848e68f88
7
- data.tar.gz: fc052cec90f64bec25086159c82369942a39c902946a45123580babc8dac8e9d2508cbe2280cccbd5663612c73277d8981010badd1a135b88ad37f09723760d8
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
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "2.11.0"
2
+ VERSION = "2.12.0"
3
3
  end
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.21"
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
@@ -3,8 +3,7 @@ build:
3
3
  steps:
4
4
  - script:
5
5
  name: Run walter
6
- code: ./walter
7
- cwd: $WORKING_DIR
6
+ code: ./$WORKING_DIR/walter -c ./$WORKING_DIR/pipeline.yml
8
7
 
9
8
  after-steps:
10
9
  - 1syo/idobata-notify@0.1.1:
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.11.0
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-21 00:00:00.000000000 Z
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.21'
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.21'
68
+ version: '2.23'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement