ufo 4.5.0 → 4.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4df81518380cf8da66e2b72a1ff6fd5a95e900d79d87c419a1517b2cd3386df8
4
- data.tar.gz: a69061cdbb294e3d2a63a171f40d6b5f9ee2a28be1a3b18e54425c53b590d010
3
+ metadata.gz: b0335efc845bd3f23fc9851fb33f31439f7f04b397f6de895e546b90c24dabf3
4
+ data.tar.gz: a13a5024fca96eb1afd71b7b3df363f07512679376fde0832a1ebbf5cdac2e99
5
5
  SHA512:
6
- metadata.gz: 946b3c2c6cdbe86d537627741beeb0edbb17981c7b0553c7d9e148da9caff60ea85893579f17bf7e3e180321f7a1004825464b11305d2cf5e456adc324c3d566
7
- data.tar.gz: 49c8121c9340643c0e3fdc34e56fd4912638c87a41b8f53523d2562c498f7b971a5f0e042e98ef82f53a08db7967f946b92b3213cf2113b3b94952cbfaf81e98
6
+ metadata.gz: cb0634493a066baf53424c325e36fd95ebbfb658a2c803c3d0600bf82276e920f034573fd7df782ea0fd421e6ce16e15358fc3f0fef384add71ddb5d104e541f
7
+ data.tar.gz: 5750580ea1d63fced5068223a318702e05b2fdb839019deb447b503400902c32edefa654fc8d6ee22f05f2ceb7659f3f414d029e0efe08983a12c4848fd85df5
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  This project *tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
5
5
 
6
+ ## [4.5.1]
7
+ - handle UPDATE_IN_PROGRESS stack validation error also
8
+ - update comment at top of generated Dockerfile
9
+
6
10
  ## [4.5.0]
7
11
  - #78 append_ufo_env to stack name, new default
8
12
  - #79 service_cluster map setting
@@ -13,7 +13,10 @@ class Ufo::Docker
13
13
  vars = YAML.load_file(path)[Ufo.env] if File.exist?(path)
14
14
  vars ||= {}
15
15
  result = RenderMePretty.result(@erb_file, vars)
16
- comment = "# Note this file was generated from #{File.basename(@erb_file)} as a part of running ufo ship"
16
+ comment =<<~EOL.chop # remove the trailing newline
17
+ # Note this file was generated from #{File.basename(@erb_file)} as a part of running ufo ship"
18
+ # To update the FROM statement with the latest base docker image run: ufo docker base
19
+ EOL
17
20
  result = "#{comment}\n#{result}"
18
21
  IO.write(@dockerfile, result)
19
22
  end
@@ -184,7 +184,7 @@ module Ufo
184
184
  # Stack:arn:aws:cloudformation:... is in ROLLBACK_COMPLETE state and can not be updated.
185
185
  def handle_stack_error(e)
186
186
  case e.message
187
- when /is in ROLLBACK_COMPLETE state and can not be updated/
187
+ when /state and can not be updated/
188
188
  puts "The #{@stack_name} stack is in #{"ROLLBACK_COMPLETE".color(:red)} and cannot be updated. Deleted the stack and try again."
189
189
  region = `aws configure get region`.strip rescue 'us-east-1'
190
190
  url = "https://console.aws.amazon.com/cloudformation/home?region=#{region}"
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "4.5.0"
2
+ VERSION = "4.5.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-10 00:00:00.000000000 Z
11
+ date: 2019-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudformation