stack_master 1.12.0 → 1.13.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
  SHA256:
3
- metadata.gz: 4c1f1a20264fc1716e6a5d576be33423a4f66d7c7795223156063c96e4d68bb5
4
- data.tar.gz: d6c8a82fd2b14836d23527952b260485dd54082cf045d73a6aeb7203024091cb
3
+ metadata.gz: 9a87f4e8bba6538fbfa5b96a5a174041337a99926caff31a24c43f7c096f5d7e
4
+ data.tar.gz: fd350bfe4fd773aafe28a2a17b77b44699142d0c1f9616e284550a9b06f3ca77
5
5
  SHA512:
6
- metadata.gz: 51b1d5a1bd8b1ff4e892763203a823dd65bc2e42720e8804aa1382e5068e7bc9a4c207de0f9699cd65db7f730fefa9970528fe885e522c005294ff83a71ac97a
7
- data.tar.gz: 5a3b584eb9eb3c88ae84dbcb882648a212ce658b9d0cd9e58c7e81e72234708add9f50c474f44b8f3cb69aa7544bea758fdea8baa32138cbff7b83e39477a7f8
6
+ metadata.gz: 78045df223e775f46f30c6068479213382532f57538583b478e4ec78ab88413f069cafc352e677fe4235a5dc28b538092a246c2624ac05097af59f2d05afe5b5
7
+ data.tar.gz: e3d1115bfd423da6acc76b20e71659bd9d0d92787f1b93ff6c125bb73d138ead9f08f45e62d86f11c5201f9db19ea4bf4c626c4da35ed1c785025b9ef40f8c7c
@@ -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: ruby
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