vidar 1.15.0 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c01018404cc849be395df92d01c21d2de70673edc6ae4d58a6283e1b8bf6987
4
- data.tar.gz: f341847d26d3a47ea72247259a00285d6642f09fcdb82a637eed791562909937
3
+ metadata.gz: fc8aca493aae5ce60698719689eacb11543e7a721aad7ec20021cee2df0683fd
4
+ data.tar.gz: 193124790b6b347c74da13ea6b82a40f0907ffd59ccd69769b14ba96c079bcfd
5
5
  SHA512:
6
- metadata.gz: 4a80eb75d78c8686764010f4f224941355041ac51211efeaf9d75772f234d818623e0aa41623821ca77c76df8300ce984c96ae3323f8dc26bb3d3bad3d76d6ed
7
- data.tar.gz: c03c0acb76ec876031f094819af6c13a70f0e601087df1c065c734811ca102cbd366b06763beddeec0e8330398a8d0357ac76a94d83e86b9d07d434f6f108c92
6
+ metadata.gz: 82cadaec9915898f37d165fee953510e08a73c993d44ae48b992472af91e55cb1587f416f725698e775d2fc0eb262a6f6c5560258ab347048f08534bcb05724d
7
+ data.tar.gz: e0ffb7eedff17d042b6d9f4ebe060eb1144ca2c2eb5e68d511e587b467b8a54b09c49949a2cadcce522e8ae033c7713010a9c3b9b874c6e466989294bdd3cbac
data/.bundler-version CHANGED
@@ -1,2 +1 @@
1
- 2.6.9
2
-
1
+ 2.7.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.15.0)
4
+ vidar (1.15.1)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 1.0)
@@ -20,14 +20,14 @@ GEM
20
20
  bigdecimal
21
21
  rexml
22
22
  diff-lcs (1.6.2)
23
- faraday (2.13.1)
23
+ faraday (2.13.2)
24
24
  faraday-net_http (>= 2.0, < 3.5)
25
25
  json
26
26
  logger
27
27
  faraday-net_http (3.4.1)
28
28
  net-http (>= 0.5.0)
29
29
  hashdiff (1.2.0)
30
- json (2.12.2)
30
+ json (2.13.0)
31
31
  language_server-protocol (3.17.0.5)
32
32
  lint_roller (1.1.0)
33
33
  logger (1.7.0)
@@ -52,7 +52,7 @@ GEM
52
52
  rspec-core (~> 3.13.0)
53
53
  rspec-expectations (~> 3.13.0)
54
54
  rspec-mocks (~> 3.13.0)
55
- rspec-core (3.13.4)
55
+ rspec-core (3.13.5)
56
56
  rspec-support (~> 3.13.0)
57
57
  rspec-expectations (3.13.5)
58
58
  diff-lcs (>= 1.2.0, < 2.0)
@@ -61,7 +61,7 @@ GEM
61
61
  diff-lcs (>= 1.2.0, < 2.0)
62
62
  rspec-support (~> 3.13.0)
63
63
  rspec-support (3.13.4)
64
- rubocop (1.77.0)
64
+ rubocop (1.78.0)
65
65
  json (~> 2.3)
66
66
  language_server-protocol (~> 3.17.0.2)
67
67
  lint_roller (~> 1.1.0)
@@ -72,7 +72,7 @@ GEM
72
72
  rubocop-ast (>= 1.45.1, < 2.0)
73
73
  ruby-progressbar (~> 1.7)
74
74
  unicode-display_width (>= 2.4.0, < 4.0)
75
- rubocop-ast (1.45.1)
75
+ rubocop-ast (1.46.0)
76
76
  parser (>= 3.3.7.2)
77
77
  prism (~> 1.4)
78
78
  rubocop-rake (0.7.1)
@@ -82,7 +82,7 @@ GEM
82
82
  lint_roller (~> 1.1)
83
83
  rubocop (~> 1.72, >= 1.72.1)
84
84
  ruby-progressbar (1.13.0)
85
- thor (1.3.2)
85
+ thor (1.4.0)
86
86
  unicode-display_width (3.1.4)
87
87
  unicode-emoji (~> 4.0, >= 4.0.4)
88
88
  unicode-emoji (4.0.4)
data/lib/vidar/run.rb CHANGED
@@ -11,16 +11,20 @@ module Vidar
11
11
  end
12
12
 
13
13
  def kubectl(command, namespace: Config.get!(:namespace))
14
- system("#{kubectl_envs_string}kubectl --namespace=#{namespace} #{command}") || exit(1)
14
+ system(kubectl_envs_hash, "kubectl", "-n", namespace, *command.split) || exit(1)
15
15
  end
16
16
 
17
17
  def kubectl_capture3(command, namespace: Config.get!(:namespace))
18
- Open3.capture3("#{kubectl_envs_string}kubectl #{command} --namespace=#{namespace}") || exit(1)
18
+ Open3.capture3(kubectl_envs_hash, "kubectl", "-n", namespace, *command.split) || exit(1)
19
19
  end
20
20
 
21
21
  def kubectl_envs_string
22
22
  https_proxy = Config.deploy_config.https_proxy
23
- "HTTPS_PROXY=#{https_proxy} " if https_proxy
23
+ https_proxy ? "HTTPS_PROXY=#{https_proxy} " : ""
24
+ end
25
+
26
+ def kubectl_envs_hash
27
+ { "HTTPS_PROXY" => Config.deploy_config.https_proxy }.compact
24
28
  end
25
29
  end
26
30
  end
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.15.0'.freeze
2
+ VERSION = '1.15.1'.freeze
3
3
  end
data/lib/vidar.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require 'json'
2
2
  require 'open3'
3
- require 'ostruct'
4
3
  require 'uri'
5
4
  require 'yaml'
6
5
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.6.9
119
+ rubygems_version: 3.7.0
120
120
  specification_version: 4
121
121
  summary: K8s deployment tools based on thor
122
122
  test_files: []