stack_master 1.7.0-x64-mingw32 → 1.7.1-x64-mingw32

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
  SHA1:
3
- metadata.gz: 9d4199278b4ed423d09c699b662ecc7a99c697ee
4
- data.tar.gz: 6b69af6fbd70de239ccb3d07e1c9e39ecbf9c263
3
+ metadata.gz: de8fa6e1667399a786ca49e1481a2aabb58b206a
4
+ data.tar.gz: 5eb1d27cacb86f904a1bed35a822b3a4c6d3c465
5
5
  SHA512:
6
- metadata.gz: 92508145673fd052cb612ddbfa88cb2eb60ed764aba323794731a392f216a131e86603cb9caa42b8cede4b70ff30cc9ff074331502ec1e5519fdfde143c467df
7
- data.tar.gz: 47716e152071f601e5b1790719e93aa5eeded7c048ede84053ccd94189b092732dcaf5f0abad34be6a4c5aec809ab6c72eb1a54d01bfb84c98c1232f70fc60a2
6
+ metadata.gz: fea58827accf50e633fb3d9b9cf54fe79a0b379847f7e69fbe127e641de770af5291a416a4c25526520f0caa1066763f4d2f6eff05ebe77d191fb165ce1ef5d1
7
+ data.tar.gz: b40240118ee022e42a2d32925d2320b29f3fd093a35ee8b7f4f014e6794380e565835db758612b1d9b6245cea9f195a7acc430898714f11e2ab6be1c954a3338
@@ -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: 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: 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
@@ -347,6 +347,20 @@ dependencies:
347
347
  - - ">="
348
348
  - !ruby/object:Gem::Version
349
349
  version: '0'
350
+ - !ruby/object:Gem::Dependency
351
+ name: diff-lcs
352
+ requirement: !ruby/object:Gem::Requirement
353
+ requirements:
354
+ - - ">="
355
+ - !ruby/object:Gem::Version
356
+ version: '0'
357
+ type: :runtime
358
+ prerelease: false
359
+ version_requirements: !ruby/object:Gem::Requirement
360
+ requirements:
361
+ - - ">="
362
+ - !ruby/object:Gem::Version
363
+ version: '0'
350
364
  description: ''
351
365
  email:
352
366
  - steve@hodgkiss.me