ufo 6.1.2 → 6.1.3

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: dbdb67f6df0ebbfb4054ad63a4fe615f1ecf52ef6141252bb4088f999b10a88c
4
- data.tar.gz: 794d980bc87422f13acf68cbf9a323507230b9b7a479c1b58355e591122c5572
3
+ metadata.gz: 881d674019c976e4c8cae9030f69bd2125e59c7af970a1fa2005dcbfb77a4887
4
+ data.tar.gz: 5c3e8f73e200390396c99aa292f949f5c0a7b0e457bab47e2b88dbc583adc0fa
5
5
  SHA512:
6
- metadata.gz: 3cc7abf022ff951920d04a42e7eb5a5d0961f6da8a1e1f87036a790675b0cd8760df270663b0f1c8dbcd13dc31d621cead338834c458dab350805dd1b6bf32a8
7
- data.tar.gz: dadacc6d60113cafa04841065373c1792a6129de9561408450f71d5125f98924d436e3ede2436dc40193f83db15f5c654a39c1d072507dc05e5902cf5444cc02
6
+ metadata.gz: 7eaca7eaa3999ce52dd4087dd2bd7862156f34c59443fcf06140f50356beb50237c4dea35d2dc68a1171576e17529c18144e5c97bc6aa4da4ea1edfa3b9411ef
7
+ data.tar.gz: 820645713455edf1d3e7fd242c68c21f32267f6eb031c67dd9236578d93c56e0a616750170f202ab27f32c86a0093a673fa5e7321c800b3d82121f38f156b29f
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
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
+ ## [6.1.3] - 2022-03-14
7
+ - [#149](https://github.com/tongueroo/ufo/pull/149) stack_output helper improve message when stack not found
8
+
6
9
  ## [6.1.2] - 2022-03-14
7
10
  - [#148](https://github.com/tongueroo/ufo/pull/148) Acm cert and user messaging improvements with config
8
11
  - acm_cert helper improvements: warn when not found and only create ssl listener if cert is found
@@ -6,16 +6,19 @@ module Ufo::TaskDefinition::Helpers
6
6
  def stack_output(name)
7
7
  stack_name, output_key = name.split(".")
8
8
  stack_name = names.expansion(stack_name)
9
- resp = cloudformation.describe_stacks(stack_name: stack_name)
10
- stack = resp.stacks.first
11
- if stack
12
- o = stack.outputs.detect { |h| h.output_key == output_key }
9
+ stack = find_stack(stack_name)
10
+ unless stack
11
+ logger.error "ERROR: Stack not found: #{stack_name}".color(:red)
12
+ call_line = ufo_config_call_line
13
+ DslEvaluator.print_code(call_line)
14
+ return
13
15
  end
14
16
 
17
+ o = stack.outputs.detect { |h| h.output_key == output_key }
15
18
  if o
16
19
  o.output_value
17
20
  else
18
- logger.info "WARN: NOT FOUND: output #{key} for stack #{stack_name}"
21
+ logger.warn "WARN: NOT FOUND: output #{output_key} for stack #{stack_name}".color(:yellow)
19
22
  nil
20
23
  end
21
24
  end
data/lib/ufo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ufo
2
- VERSION = "6.1.2"
2
+ VERSION = "6.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ufo
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.1.2
4
+ version: 6.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen