secret_config 0.4.3 → 0.4.4
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 +4 -4
- data/bin/secret_config +2 -0
- data/lib/secret_config/cli.rb +3 -1
- data/lib/secret_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea3a4777a5adf17f3ce9ffa247993218c40ceded3100327aae35578dbdb107f7
|
4
|
+
data.tar.gz: 79259be9bdb507cb7bf6b3058df6c786644b9b4feee0d5e9cb0157617eeba53e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5883154f322fbcae08ba19ee47efbd31fbb6c9785a492b0f00e022f2a621b56c62278d7def133139210f1f7215c55839d3836e52743cbd7cd3842ee9d19c298
|
7
|
+
data.tar.gz: fd1e3b4d91edbe3e00f8b5343534fc065a1168c8f07b4743bc6f28f639024992893a6a4413180c1b7adcecae6137ca519a58e3b81fae3127529028ef7bde2591
|
data/bin/secret_config
CHANGED
data/lib/secret_config/cli.rb
CHANGED
@@ -177,7 +177,9 @@ module SecretConfig
|
|
177
177
|
def set_config(config, path)
|
178
178
|
# TODO: prune, replace
|
179
179
|
Utils.flatten_each(config, path) do |key, value|
|
180
|
-
|
180
|
+
next if value.nil?
|
181
|
+
|
182
|
+
value = random_password if value.to_s.strip == '$random'
|
181
183
|
puts "Setting: #{key}"
|
182
184
|
provider_instance.set(key, value)
|
183
185
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secret_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Reid Morrison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: concurrent-ruby
|