puppet_litmus 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/puppet_litmus/serverspec.rb +8 -3
- data/lib/puppet_litmus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2313968959eb8e8f6e074f4273365fc0f97931fa
|
|
4
|
+
data.tar.gz: 11077ee9871bf76777c4ea41629293558db5d2eb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|