secret_env 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/README.md +5 -0
- data/exe/secret_env +8 -1
- data/lib/secret_env.rb +4 -0
- data/lib/secret_env/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2964adcf07ceb1f7ed440b4e849810476843f770f80a2b4b860ce230bc09f4d8
|
4
|
+
data.tar.gz: c9d927bf4f39c855019bcd2e4c0b35c98dc83ec2916b30b9c7954ff8e2cbc989
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '08e9f8f5f0c54f3dd465716fef1d206b37717837543aaa54e100487e9286d97806d5dca5326763c3e512aeec809c79aa013ed9c3d0e6dcdb49cdd82becbdfa1b'
|
7
|
+
data.tar.gz: bd9bb62fba1aea694204fc5b794073383c3f97afd3ce34970e1953fe77a25c6197637635ee69980fe6e4e5c944d662236af7ea16f14d9ba2ee247462932247b6
|
data/README.md
CHANGED
@@ -69,6 +69,11 @@ bar=2
|
|
69
69
|
|
70
70
|
$ secret_env config/secret_env.yml production your_command --option
|
71
71
|
|
72
|
+
or
|
73
|
+
|
74
|
+
$ export SECRET_ENV=production
|
75
|
+
$ secret_env config/secret_env.yml your_command --option
|
76
|
+
|
72
77
|
## Contributing
|
73
78
|
|
74
79
|
Bug reports and pull requests are welcome on GitHub at https://github.com/adorechic/secret_env.
|
data/exe/secret_env
CHANGED
@@ -3,7 +3,14 @@
|
|
3
3
|
require "secret_env"
|
4
4
|
require 'open3'
|
5
5
|
config, env = ARGV.shift(2)
|
6
|
-
|
6
|
+
|
7
|
+
if SecretEnv.env?(env: env, secrets_file: config)
|
8
|
+
SecretEnv.load(env: env, secrets_file: config)
|
9
|
+
else
|
10
|
+
SecretEnv.load(env: ENV['SECRET_ENV'], secrets_file: config)
|
11
|
+
ARGV.unshift(env)
|
12
|
+
end
|
13
|
+
|
7
14
|
stdin, stdoe, t = Open3.popen2e(*ARGV)
|
8
15
|
stdin.close
|
9
16
|
stdoe.each do |line|
|
data/lib/secret_env.rb
CHANGED
data/lib/secret_env/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: secret_env
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- adorechic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.6
|
112
|
+
rubygems_version: 2.7.6
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: SecretEnv retrieves secrets and export to ENV
|