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 +4 -4
- data/lib/stack_master/cli.rb +9 -6
- data/lib/stack_master/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a87f4e8bba6538fbfa5b96a5a174041337a99926caff31a24c43f7c096f5d7e
|
4
|
+
data.tar.gz: fd350bfe4fd773aafe28a2a17b77b44699142d0c1f9616e284550a9b06f3ca77
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78045df223e775f46f30c6068479213382532f57538583b478e4ec78ab88413f069cafc352e677fe4235a5dc28b538092a246c2624ac05097af59f2d05afe5b5
|
7
|
+
data.tar.gz: e3d1115bfd423da6acc76b20e71659bd9d0d92787f1b93ff6c125bb73d138ead9f08f45e62d86f11c5201f9db19ea4bf4c626c4da35ed1c785025b9ef40f8c7c
|
data/lib/stack_master/cli.rb
CHANGED
@@ -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
|
-
#
|
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
|
data/lib/stack_master/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|