ops_team 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/builtins/envdiff.rb +17 -5
- data/ops_team.gemspec +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: 38e13ae9a92b8cce7726c6edd5d498859a41ecf108f8c4b248b3da8918518c01
|
4
|
+
data.tar.gz: fdf320662ce91d561814e80445ad696a46231441f0483e178d763c41d06e8d81
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e273245669d3a2e966cc55eff9b4536ba8fe1ee1a288e535003d004dae7e982895ee59d01f9fc2921559886d66b846a042f62890d899ae2e6845164d93627529
|
7
|
+
data.tar.gz: 700f6c5ef42e0b46ff4522544b6140ad7c225abacf77d3ec5f54038690a665a59dec9aee19eaba7e7a0b69c5039be809eb9f391c08bd69a03dee71bfaf46ab0a
|
data/lib/builtins/envdiff.rb
CHANGED
@@ -49,21 +49,29 @@ module Builtins
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def keys_for(env)
|
52
|
-
|
52
|
+
tagged_config_keys_for(env) + tagged_secrets_keys_for(env)
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
56
|
-
(
|
55
|
+
def tagged_config_keys_for(env)
|
56
|
+
config_keys_for(env).map do |key|
|
57
57
|
"[CONFIG] #{key}"
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
-
def
|
62
|
-
(
|
61
|
+
def tagged_secrets_keys_for(env)
|
62
|
+
secrets_keys_for(env).map do |key|
|
63
63
|
"[SECRET] #{key}"
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
|
+
def config_keys_for(env)
|
68
|
+
(config_for(env)["environment"]&.keys || []) - ignored_keys
|
69
|
+
end
|
70
|
+
|
71
|
+
def secrets_keys_for(env)
|
72
|
+
(secrets_for(env)["environment"]&.keys || []) - ignored_keys
|
73
|
+
end
|
74
|
+
|
67
75
|
def config_for(env)
|
68
76
|
YAML.load_file(config_path_for(env))
|
69
77
|
end
|
@@ -111,6 +119,10 @@ module Builtins
|
|
111
119
|
def secrets_path_for(env)
|
112
120
|
Secrets.config_path_for(env)
|
113
121
|
end
|
122
|
+
|
123
|
+
def ignored_keys
|
124
|
+
Options.get("envdiff.ignored_keys") || []
|
125
|
+
end
|
114
126
|
end
|
115
127
|
|
116
128
|
Envdiff = EnvDiff
|
data/ops_team.gemspec
CHANGED