hephaestus 0.8.3 → 0.8.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -0
- data/lib/hephaestus/engine.rb +3 -3
- data/lib/hephaestus/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: 688c4f3a753643db48809917ef35d7c2d5a62f32d7fe77e29bbe3b1e3ca6832a
|
4
|
+
data.tar.gz: 2228781a2b6bf3218e45f7a687e0216298d9fb67414db9fd48a6bec6de24d6ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 659cb0f005822338eb2973bae5136bb41bc23388c925c79e6facf292021816cd5e27a8b39363f6ebf55e570416d766c65deceffb313a9f32d5959178751f229c
|
7
|
+
data.tar.gz: 2bdf24c8da1ab8fa4a86cc93b3237e7ddc375f3735f03db6cd837efb1618e43b6bde2851391700226dfe8790ac263451a8331c0f3eb172eee5fa2a3ae82d8253
|
data/CHANGELOG.md
CHANGED
data/lib/hephaestus/engine.rb
CHANGED
@@ -65,10 +65,10 @@ module Hephaestus
|
|
65
65
|
# we need to check if the 1Password CLI is installed and load it ASAP,
|
66
66
|
# because it contains all the secrets
|
67
67
|
def fetch_infra_secret(label:, default:)
|
68
|
-
if
|
69
|
-
op_read("op://Infra/Global Secrets/#{label}")
|
70
|
-
else
|
68
|
+
if Rails.env.local?
|
71
69
|
ENV.fetch(label, default.is_a?(Pathname) ? default.read : default)
|
70
|
+
else
|
71
|
+
op_read("op://Infra/Global Secrets/#{label}")
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
data/lib/hephaestus/version.rb
CHANGED