on_container 0.0.10 → 0.0.11

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: e6c46418633fff79b878ba857ac1b36975ec48cf8b267e97a040ea539c303465
4
- data.tar.gz: 624f71fb481da53a8d7631baaf20b9900c5e9e8a4535ef28bb79bb5b20640bc0
3
+ metadata.gz: 819d1f5a057f277e3b816eedd99435c9816b6d1ec6ff2e79e2d90798b5b74648
4
+ data.tar.gz: 163f0552ec15c2b0199934ec81313d8708877339e20504c427f270e228ecc94b
5
5
  SHA512:
6
- metadata.gz: 4da835630be42d7f2342675fea85adf95407db9d247d8de7c0f229a24d48545af30d4994f9efccc31edea2b5799fd03fb1a5ac420b8d1680714679f5751e5d89
7
- data.tar.gz: d9d63e78760abd70219f254e5ae7ba7465862037c8fe6792c1807efbb5c300bb513738074bea9bec92c32e4948fef791ef7131856ffaac09781724e76e325f7b
6
+ metadata.gz: 16c10e11aa18e20cd8fb02ee53018f5477c1ec661ef6c43329b6c0a74814d0bb7b00f785c9966f2006670e0c73858c36d719ff5177ece9b35fb54fbc33743808
7
+ data.tar.gz: 900379b6246d9d44f301a81213e965feec8cb1235bd514fc9235b3e5fd5dc97b5f91399f25b18ac7efd0596e9a15e878766f85726e98040b30a688e80f0519db
@@ -12,10 +12,10 @@ OnContainer::Secrets::GoogleCloud::EnvLoader.perform!
12
12
 
13
13
  # Process only a known list of env vars that can filled by reading a file (i.e.
14
14
  # a docker secret):
15
- Dir["#{ENV.fetch('SECRETS_PATH', '/run/secrets/')}*"].each do |secret_filepath|
16
- next unless File.file?(secret_filepath)
17
-
18
- secret_envvarname = File.basename(secret_filepath, '.*').upcase
15
+ Dir["#{ENV.fetch('SECRETS_PATH', '/run/secrets')}/**/*"].map do |path|
16
+ Pathname.new(path)
17
+ end.select(&:file?).each do |secret_filepath|
18
+ secret_envvarname = secret_filepath.basename('.*').to_s.upcase
19
19
 
20
20
  # Skip if variable is already set - already-set variables have precedence over
21
21
  # the secret files:
@@ -55,4 +55,4 @@ url_keys.each do |url_key|
55
55
  ENV[url_key] = uri.to_s
56
56
  end
57
57
 
58
- # STDERR.puts ENV.inspect
58
+ # STDERR.puts ENV.inspect
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module OnContainer
4
- VERSION = '0.0.10'
4
+ VERSION = '0.0.11'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: on_container
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roberto Quintanilla
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-17 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler