mofa 0.2.14 → 0.2.15

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.
@@ -151,6 +151,9 @@ module Mofa
151
151
  true
152
152
  end
153
153
 
154
+ def self.exit_on_failure?
155
+ true
156
+ end
154
157
 
155
158
  end
156
159
  end
@@ -199,6 +199,10 @@ class ProvisionCmd < MofaCmd
199
199
  end
200
200
 
201
201
  puts "Exiting with exit code #{exit_code}."
202
+
203
+ if exit_code != 0
204
+ raise Thor::Error, "Chef client exited with non zero exit code: #{exit_code}"
205
+ end
202
206
  exit_code
203
207
 
204
208
  end
@@ -1,3 +1,3 @@
1
1
  module Mofa
2
- VERSION = "0.2.14"
2
+ VERSION = "0.2.15"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mofa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.14
4
+ version: 0.2.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-16 00:00:00.000000000 Z
12
+ date: 2015-09-23 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec