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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3beee0325741d140b711ee3f939306452b176b9be9f7d9094c1e578ed780373
4
- data.tar.gz: 33aef85445dd2494967e246c1b4ebfe7433d76b9b09512756cb2a086321438cd
3
+ metadata.gz: 38e13ae9a92b8cce7726c6edd5d498859a41ecf108f8c4b248b3da8918518c01
4
+ data.tar.gz: fdf320662ce91d561814e80445ad696a46231441f0483e178d763c41d06e8d81
5
5
  SHA512:
6
- metadata.gz: b0d69fca7b243d34d4c14cf53d8b10942b212cd53fd897c136079d9883e939670f3b74c3383df547d6c2f9a7c1d25f0ce4ba11e3337e566cdab010a6ebe81ef9
7
- data.tar.gz: 96e25352e3b8b337a53632e560e1f494c38d2fc09b0b314c4a4e6e07aec92324b52051ac0c5235a4ab8d394247683890230dd5b29fe86b8ec26102af0482c559
6
+ metadata.gz: e273245669d3a2e966cc55eff9b4536ba8fe1ee1a288e535003d004dae7e982895ee59d01f9fc2921559886d66b846a042f62890d899ae2e6845164d93627529
7
+ data.tar.gz: 700f6c5ef42e0b46ff4522544b6140ad7c225abacf77d3ec5f54038690a665a59dec9aee19eaba7e7a0b69c5039be809eb9f391c08bd69a03dee71bfaf46ab0a
@@ -49,21 +49,29 @@ module Builtins
49
49
  end
50
50
 
51
51
  def keys_for(env)
52
- config_keys_for(env) | secrets_keys_for(env)
52
+ tagged_config_keys_for(env) + tagged_secrets_keys_for(env)
53
53
  end
54
54
 
55
- def config_keys_for(env)
56
- (config_for(env)["environment"]&.keys || []).map do |key|
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 secrets_keys_for(env)
62
- (secrets_for(env)["environment"]&.keys || []).map do |key|
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'ops_team'
5
- s.version = '0.15.0'
5
+ s.version = '0.15.1'
6
6
  s.authors = [
7
7
  'nickthecook@gmail.com'
8
8
  ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_team
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com