ufo 6.2.3 → 6.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ufo/config.rb +1 -0
- data/lib/ufo/task_definition/helpers/vars/builder.rb +13 -3
- data/lib/ufo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33b084a105deead3af06b7ee38478fe56875aa2a3e9728b4a78720ae33b7b100
|
4
|
+
data.tar.gz: 9c84f76952079299b855ac987d7de849a352f978badc05daa4934de34b93f7be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c2d0f3ce6c72e0db4841ed99aaf0eb5095e2f8e2eea156dce69ac936dcca1b76c9185c920a4f791ff71217bb27ada2a486a023c139ff2c12d156dee882ca217
|
7
|
+
data.tar.gz: 285f2db81b8e5f49c0c2c52da74a896cfddee6df44853a61e9fa69f67b463654dff63f405229981db017c0bb7fcd0fa11b8993566aebe3c509ab7dbb72ccccf4
|
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.2.4] - 2022-03-20
|
7
|
+
- [#158](https://github.com/tongueroo/ufo/pull/158) warn on missing env and secrets file instead of error
|
8
|
+
|
6
9
|
## [6.2.3] - 2022-03-20
|
7
10
|
- [#157](https://github.com/tongueroo/ufo/pull/157) layering.show_for_commands option
|
8
11
|
|
data/lib/ufo/config.rb
CHANGED
@@ -112,6 +112,7 @@ module Ufo
|
|
112
112
|
config.secrets.pattern.secretsmanager = ":APP-:ENV-:SECRET_NAME" # => demo-dev-DB_PASS
|
113
113
|
config.secrets.pattern.ssm = ":APP/:ENV/:SECRET_NAME" # => demo/dev/DB_PASS
|
114
114
|
config.secrets.provider = "ssm" # default provider for conventional expansion IE: ssm or secretsmanager
|
115
|
+
config.secrets.warning = true
|
115
116
|
|
116
117
|
config.ship = ActiveSupport::OrderedOptions.new
|
117
118
|
config.ship.docker = ActiveSupport::OrderedOptions.new
|
@@ -5,8 +5,10 @@ module Ufo::TaskDefinition::Helpers::Vars
|
|
5
5
|
extend Memoist
|
6
6
|
include AwsHelper
|
7
7
|
include Ufo::Concerns::Names
|
8
|
-
include Ufo::Utils::Pretty
|
9
8
|
include Ufo::Config::CallableOption::Concern
|
9
|
+
include Ufo::Utils::CallLine
|
10
|
+
include Ufo::Utils::Logging
|
11
|
+
include Ufo::Utils::Pretty
|
10
12
|
|
11
13
|
def initialize(options={})
|
12
14
|
# use either file or text. text takes higher precedence
|
@@ -21,8 +23,16 @@ module Ufo::TaskDefinition::Helpers::Vars
|
|
21
23
|
def read(path)
|
22
24
|
full_path = "#{Ufo.root}/#{path}"
|
23
25
|
unless File.exist?(full_path)
|
24
|
-
|
25
|
-
|
26
|
+
logger.warn "WARN: The #{pretty_path(full_path)} env file could not be found. Are you sure it exists?".color(:yellow)
|
27
|
+
logger.warn <<~EOL
|
28
|
+
You can disable this warning with: secrets.warning = false
|
29
|
+
|
30
|
+
See: https://ufoships.com/docs/helpers/builtin/secrets/
|
31
|
+
|
32
|
+
EOL
|
33
|
+
call_line = ufo_config_call_line
|
34
|
+
DslEvaluator.print_code(call_line)
|
35
|
+
return ''
|
26
36
|
end
|
27
37
|
IO.read(full_path)
|
28
38
|
end
|
data/lib/ufo/version.rb
CHANGED