puppet_litmus 0.3.0 → 0.3.1

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: 8eb95d6d8c4273f6f5a8adb391bd2733a63780a6
4
- data.tar.gz: d0ee040ae15c4d6e3eeffa0a87e58983647545ea
3
+ metadata.gz: 2313968959eb8e8f6e074f4273365fc0f97931fa
4
+ data.tar.gz: 11077ee9871bf76777c4ea41629293558db5d2eb
5
5
  SHA512:
6
- metadata.gz: 37edcc9a67e468ffb8a6de584ef74c260e430f0acc4dada0004e732ddf0b472999154302d05f3eec4fee26c33e795c65895b15442ee126af4ed754f12ceb24c7
7
- data.tar.gz: 7185b48a857a1bd10a5501f85fbe6ee311a5b45f65b1ed2e9ea265a205701bd041f1dfc0c894df13fcb54567d5971012d8fabaf72c8cbfbe7cfcb3b872568a25
6
+ metadata.gz: dbd1c581d0404fa912b4560fc86d10b8d3ea7a50ce5add51c7071de96a1899fedc27f55dd6b9352ee10fa78529a8fc8fb55787bcc836bcef97ca3516fd58d268
7
+ data.tar.gz: 9b60c27d7d116d6e82e333563c31859592a76774c748df3561c897c7692c42677682598a523387f6c4b52ebd5c2ac9e4e0f4a7dca5070799ab319ab3a3aae027
@@ -111,9 +111,14 @@ module PuppetLitmus::Serverspec
111
111
 
112
112
  raise "task failed\n`#{task_name}`\n======\n#{result}" if result.first['status'] != 'success'
113
113
 
114
- result = OpenStruct.new(exit_code: result.first['result']['exit_code'],
115
- stdout: result.first['result']['stdout'],
116
- stderr: result.first['result']['stderr'])
114
+ exit_code = if result.first['status'] == 'success'
115
+ 0
116
+ else
117
+ 255
118
+ end
119
+ result = OpenStruct.new(exit_code: exit_code,
120
+ stdout: result.first['result']['status'],
121
+ stderr: result.first['result']['status'])
117
122
  yield result if block_given?
118
123
  result
119
124
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  # version of this gem
4
4
  module PuppetLitmus
5
- VERSION ||= '0.3.0'
5
+ VERSION ||= '0.3.1'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_litmus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.