ops_team 1.19.2.rc1 → 1.20.0.rc1

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: '00594beba2a2a4cc9f051947c360677fa6caccc8cbac8f3eb132d7fdd865155b'
4
- data.tar.gz: bdeabb9c5e4df7ea9040b444b6d86169ea9e599dd12fddda52e9377f5116d2c9
3
+ metadata.gz: d3254194d43a187280633799defa3376d89170e81c37f5f4be0987cadefa4ec6
4
+ data.tar.gz: 792c490a430de61031c2b6a554bed2f5973968517cb332e7688222797b9df6e9
5
5
  SHA512:
6
- metadata.gz: 91a3e5325ffd84b3b7b329b4b31cdec132e2b17912e7b3a289a3a409bb033578b0e37df892940f2bcb05f04e1cfbd2d6752cb8a5ee87ed9dc660757d5271c2f7
7
- data.tar.gz: bf5bb53be5f30543d21327f193d66fc0d016943dc6d2434ba170bce9e3bd03cbf8b6c6acd6cb700be58505b858fb748b25edd5c9e0b94138d9652ffa4065d289
6
+ metadata.gz: 254adf785e34cdc5611697de6606e5d8f9f29096a8a1083b26b2b483ba1b058a282716f37dc61a4437117acd18c54a062e3f62f17c1190453f5235e3a3e5229e
7
+ data.tar.gz: 20e920935b4dfc60dd9b31363fd55702969e2535bc24a29a13dcbaec4f485224dc1163ed78f7f268f891d3a8b9197af84220644c5a9799e3d13c3e0425edd221
data/lib/app_config.rb CHANGED
@@ -31,6 +31,11 @@ class AppConfig
31
31
 
32
32
  def load
33
33
  config['environment']&.each do |key, value|
34
+ if Options.get("config.preserve_existing_env_vars") && ENV[key]
35
+ Output.debug("Environment variable '$#{key}' already set; skipping...")
36
+ next
37
+ end
38
+
34
39
  ENV[key] = value.is_a?(Hash) || value.is_a?(Array) ? value.to_json : value.to_s
35
40
  end
36
41
  end
data/lib/output.rb CHANGED
@@ -54,6 +54,12 @@ class Output
54
54
  @out.print(msg)
55
55
  end
56
56
 
57
+ def debug(msg)
58
+ return unless ENV["OPS_DEBUG_OUTPUT"]
59
+
60
+ @err.puts(msg.blue)
61
+ end
62
+
57
63
  def silence
58
64
  @out = @err = dummy_output
59
65
  end
data/ops_team.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'ops_team'
5
- s.version = '1.19.2.rc1'
5
+ s.version = '1.20.0.rc1'
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: 1.19.2.rc1
4
+ version: 1.20.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - nickthecook@gmail.com
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
252
252
  - !ruby/object:Gem::Version
253
253
  version: 1.3.1
254
254
  requirements: []
255
- rubygems_version: 3.1.6
255
+ rubygems_version: 3.3.7
256
256
  signing_key:
257
257
  specification_version: 4
258
258
  summary: ops_team handles basic automation for your project, driven by self-documenting