samson_secret_puller 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/samson_secret_puller.rb +10 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30627373b312b82c02f01d69d5d85e6814ae0d2d
4
- data.tar.gz: d83e9d19dfc7f210aa61567f0d370c4b4d01fdff
3
+ metadata.gz: 39b201322c86d7f1fc1e70407bd761ceda3d8292
4
+ data.tar.gz: b19d85d1493fb9326e679f023375762be7c84833
5
5
  SHA512:
6
- metadata.gz: e5c9ed3fd6ea192e3536c2bb7c81bb3968029c3c3b31a7b7d5b0df5d887ea8396c6fd274d38c4dd24931966eea7361daf95514ea07bff323f545e5b4891e0ec8
7
- data.tar.gz: 46de82defe80c2782e3df750181edb4854f4080affabe5b8c2dc93d1d80706b96cf8e966890a1f084b5c48ccba0d78535f856d04019e311360bab2fed5b0e40d
6
+ metadata.gz: c9603daa9562373888672de0b1d46558886e1c1e2f80467e73d1b192889cb261778cf3f5521a44cda63b1f23af896ffd73c6868b67452e6ae14c5cea6eba5824
7
+ data.tar.gz: 42557448e86904b68f84f6703355a2cf9eb3d0af0c24406520dffc589db2860bd533e5a94b9565f2fddbfead0d3df61b05f56cc19f20691255c5f9377471eabf
@@ -21,6 +21,16 @@ module SamsonSecretPuller
21
21
  secrets
22
22
  end
23
23
 
24
+ # When we run in kubernetes we need to read secrets from ENV and secret storage
25
+ # but other parts of the apps or gems do not need to know about this
26
+ def replace_ENV! # rubocop:disable Style/MethodName
27
+ old = $VERBOSE
28
+ $VERBOSE = nil
29
+ Object.const_set(:ENV, self)
30
+ ensure
31
+ $VERBOSE = old
32
+ end
33
+
24
34
  private
25
35
 
26
36
  def secrets
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: samson_secret_puller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-29 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: michael@grosser.it