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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 036bf21949ad62f2e2231601d79f5e1def278e977a1b3db99864660337b937c3
4
- data.tar.gz: 5e1bf67cd1dad710c635aaf602300b4e216e0348439bdb49b8164157fbdd278f
3
+ metadata.gz: ffdd22b30023a7720bce99d0af2cc84a7df66f076737fb5c375573a84d70749d
4
+ data.tar.gz: bb4507f68929275f839d391aec106f04eb7bfeae8c64463651e286caf3578dce
5
5
  SHA512:
6
- metadata.gz: d1ca2edc398dddfa06d718906b524618a1a01fa8a09abbe47333f73c38810c42cf8ce2319fab4aa1f6774623a380d6adee41996325437d00545b1e927805e16d
7
- data.tar.gz: 8c31bc5c440f20efa567b977096e02c87054919eeb2cbde9fc88a7890c343b313e21d6e5b399ab670a6f3148239bcabf473680674bd0202a646401c125430dc5
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
 
@@ -1,3 +1,3 @@
1
1
  module StackMaster
2
- VERSION = "1.7.0"
2
+ VERSION = "1.7.1"
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.7.0
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-05-15 00:00:00.000000000 Z
12
+ date: 2018-06-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler