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 +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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2557552da037aededfb231abc424124468696796
|
4
|
+
data.tar.gz: f6b27daafe20f163ebd8a6522cd7ace0871506e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e3f5f07fee57decf4f980f50cff794445488e04a32d1ba9e433e85c9d45d7eb2899f89b0230a6bf2e6fd7b81ad3de0429603fd04f3ba0342d63f2bd8f7415f
|
7
|
+
data.tar.gz: 4cd1366e39ac30fd9c48c5e4724abb4d52a1ef66474c641689f42f95446f67a194fc5b2617660a48fe838d13023421b0f6b0d7bcbeebd60d4065173eecef1a7a
|
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: 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-
|
12
|
+
date: 2019-02-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|