ufo 6.1.2 → 6.1.5

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: dbdb67f6df0ebbfb4054ad63a4fe615f1ecf52ef6141252bb4088f999b10a88c
4
- data.tar.gz: 794d980bc87422f13acf68cbf9a323507230b9b7a479c1b58355e591122c5572
3
+ metadata.gz: c5f634a56ad0e21b377ac92fb03f9b745a0f9e889e3a0b2b11f0f4b03c2a40b0
4
+ data.tar.gz: 3cbc84d12fd991d62f85f53792319b170fc033e77d7191fc666aa4c124b0d1f9
5
5
  SHA512:
6
- metadata.gz: 3cc7abf022ff951920d04a42e7eb5a5d0961f6da8a1e1f87036a790675b0cd8760df270663b0f1c8dbcd13dc31d621cead338834c458dab350805dd1b6bf32a8
7
- data.tar.gz: dadacc6d60113cafa04841065373c1792a6129de9561408450f71d5125f98924d436e3ede2436dc40193f83db15f5c654a39c1d072507dc05e5902cf5444cc02
6
+ metadata.gz: fb24c7425643f9b9013f54309205c908eae46fcfbd66795d31d5067fba472280b8744b85a0d7ea9de9f684cd00ae4df6e7114c2ff051450d9d00e1ca36999945
7
+ data.tar.gz: 6c6cf2c3d47ff6edf45a327503b4590e9edbd38ce7cc2fc9d3b320bb4fb8d50240754fa6d6aa90e7e7e203af141de65b6140fdb98d0c4eeda031204545f558dd
data/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
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.5] - 2022-03-16
7
+ - [#151](https://github.com/tongueroo/ufo/pull/151) fix symlink when .git ext is in the repo
8
+
9
+ ## [6.1.4] - 2022-03-16
10
+ - [#150](https://github.com/tongueroo/ufo/pull/150) ufo central: fix edge case when trying report broken symlink and logger not available
11
+
12
+ ## [6.1.3] - 2022-03-14
13
+ - [#149](https://github.com/tongueroo/ufo/pull/149) stack_output helper improve message when stack not found
14
+
6
15
  ## [6.1.2] - 2022-03-14
7
16
  - [#148](https://github.com/tongueroo/ufo/pull/148) Acm cert and user messaging improvements with config
8
17
  - acm_cert helper improvements: warn when not found and only create ssl listener if cert is found
@@ -1,5 +1,6 @@
1
1
  class Ufo::CLI::Central
2
2
  class Base
3
+ include Ufo::Utils::Logging
3
4
  include Ufo::Utils::Pretty
4
5
  include Ufo::Utils::Sure
5
6
 
@@ -30,6 +30,7 @@ class Ufo::CLI::Central
30
30
 
31
31
  # FileUtils.ln_s(target, link, options)
32
32
  # ~/.ufo/central/repo -> .ufo
33
+ src.sub!(/\.git$/,'')
33
34
  FileUtils.ln_sf(src, ".ufo", verbose: false) # force in case of existing broken symlink
34
35
  FileUtils.rm_rf(".ufo.bak")
35
36
 
@@ -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.5"
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: 6.1.2
4
+ version: 6.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tung Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-03-14 00:00:00.000000000 Z
11
+ date: 2022-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-logs