stack_master 1.12.0-x64-mingw32 → 1.13.0-x64-mingw32

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: e52ba7c1a39b2978a64717487b4cf314e04d64c8
4
- data.tar.gz: f143cfd33624bac80dab51329bd0ae89eb574379
3
+ metadata.gz: 2557552da037aededfb231abc424124468696796
4
+ data.tar.gz: f6b27daafe20f163ebd8a6522cd7ace0871506e1
5
5
  SHA512:
6
- metadata.gz: 204f9935c56cbef2bd7814b8a7ee80ed8fdd479239f423224b320124331fb300d56fd11772e4183300ad07259e47c650a5ca3c59dd666c955a01b38ea07594da
7
- data.tar.gz: 128e2a78fba1d8823234dbad20c95adbfb53cf5341ecfad9fbe28edb14d5ffee4bf7ee25255b03a1486d6d6db9f4d889346fa97041f7daf3bb0e819e9e36e3e9
6
+ metadata.gz: 65e3f5f07fee57decf4f980f50cff794445488e04a32d1ba9e433e85c9d45d7eb2899f89b0230a6bf2e6fd7b81ad3de0429603fd04f3ba0342d63f2bd8f7415f
7
+ data.tar.gz: 4cd1366e39ac30fd9c48c5e4724abb4d52a1ef66474c641689f42f95446f67a194fc5b2617660a48fe838d13023421b0f6b0d7bcbeebd60d4065173eecef1a7a
@@ -13,10 +13,6 @@ module StackMaster
13
13
  TablePrint::Config.io = StackMaster.stdout
14
14
  end
15
15
 
16
- def default_config_file
17
- "stack_master.yml"
18
- end
19
-
20
16
  def execute!
21
17
  program :name, 'StackMaster'
22
18
  program :version, StackMaster::VERSION
@@ -200,6 +196,12 @@ module StackMaster
200
196
  run!
201
197
  end
202
198
 
199
+ private
200
+
201
+ def default_config_file
202
+ "stack_master.yml"
203
+ end
204
+
203
205
  def load_config(file)
204
206
  stack_file = file || default_config_file
205
207
  StackMaster::Config.load!(stack_file)
@@ -218,6 +220,7 @@ module StackMaster
218
220
  stack_definitions = config.filter(region, stack_name)
219
221
  if stack_definitions.empty?
220
222
  StackMaster.stdout.puts "Could not find stack definition #{stack_name} in region #{region}"
223
+ command_results.push false
221
224
  end
222
225
  stack_definitions = stack_definitions.select do |stack_definition|
223
226
  StackStatus.new(config, stack_definition).changed?
@@ -229,8 +232,8 @@ module StackMaster
229
232
  end
230
233
  end
231
234
 
232
- # Return success/failure
233
- command_results.all?
235
+ # fail command execution if something went wrong
236
+ @kernel.exit 1 unless command_results.all?
234
237
  end
235
238
  end
236
239
  end
@@ -1,3 +1,3 @@
1
1
  module StackMaster
2
- VERSION = "1.12.0"
2
+ VERSION = "1.13.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stack_master
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.12.0
4
+ version: 1.13.0
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Steve Hodgkiss
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-11 00:00:00.000000000 Z
12
+ date: 2019-02-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler