stack_master 1.7.0 → 1.7.1
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/commands/apply.rb +8 -0
- 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: ffdd22b30023a7720bce99d0af2cc84a7df66f076737fb5c375573a84d70749d
|
4
|
+
data.tar.gz: bb4507f68929275f839d391aec106f04eb7bfeae8c64463651e286caf3578dce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39e3957d69b85bb77bbbe710c0f635430a5f818937236d96c4843681fcb641703a7b42ff5fd1bb78e87390e1746d5dfa082dd33d6ff405d9979bd6d938b5b7fe
|
7
|
+
data.tar.gz: 6479dc538c18330124b5c5871219f745a459424e16f5a3047d7b80dc09a56b7d5d242a3eb3773f89cc5bfcd01dc1b2b858700787bdb3f69aacb21cb0308a58d1
|
@@ -46,11 +46,19 @@ module StackMaster
|
|
46
46
|
!stack.nil?
|
47
47
|
end
|
48
48
|
|
49
|
+
def abort_if_review_in_progress
|
50
|
+
if stack_exists? && stack.stack_status == "REVIEW_IN_PROGRESS"
|
51
|
+
StackMaster.stderr.puts "Stack currently exists and is in #{stack.stack_status}"
|
52
|
+
failed! "You will need to delete the stack (#{stack.stack_name}) before continuing"
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
49
56
|
def use_s3?
|
50
57
|
!@s3_config.empty?
|
51
58
|
end
|
52
59
|
|
53
60
|
def diff_stacks
|
61
|
+
abort_if_review_in_progress
|
54
62
|
StackDiffer.new(proposed_stack, stack).output_diff
|
55
63
|
end
|
56
64
|
|
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.7.
|
4
|
+
version: 1.7.1
|
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: 2018-
|
12
|
+
date: 2018-06-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|