vidar 1.13.0 → 1.13.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: 15f49ba8ac500ed7d75ede24961bb859230d6550bcf77312377827cc1cee6f11
4
- data.tar.gz: 5ec6e8705ab756efdaf5ea87c8f310128da0cdb40bfb35e6f1312facfcae4f90
3
+ metadata.gz: f964bc107c9bed7c2324a04cab2fa114bca4d9daac6f1cc1dc30fbff45ad40cc
4
+ data.tar.gz: d90e034359bf4081f8d9b452ef09bcfce3a48402c05269df43c406dd5327582a
5
5
  SHA512:
6
- metadata.gz: 3b8f0d3b050007fb76499083227ce72aab6cebd611a62e57bfc9da2d37c525d71a47a8e45df864785fd967820ef108e81cf14dc8268cc60d0590e9a9548a52d3
7
- data.tar.gz: 27735597405749d168b4fc3c40a77b8cf0ae052bda5d232c39dc76754ff5f39032b29a482a6f78918d8d5e9e90af6541dcefbff472be3232c3796542b296c371
6
+ metadata.gz: 279749ca74b69ede488090f17a95b2c7a063e8822691b5cd33a3584a398b688dcdaca01228dce6bb7fc9c6f5baecb85092cdb02ff003626ef93a3fb84a9933ab
7
+ data.tar.gz: d9f88a89a90794f927a95c76b4447a2b97d8c60532d083b7cd04c247c393d59b4c192dd0bb5cfdea1ac438b2e07c1cc249bde7ecb0f1b2c52a7f8e0c63296a7a
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vidar (1.13.0)
4
+ vidar (1.13.1)
5
5
  colorize
6
6
  faraday
7
7
  thor (~> 1.0)
@@ -39,7 +39,7 @@ GEM
39
39
  pry (0.14.2)
40
40
  coderay (~> 1.1)
41
41
  method_source (~> 1.0)
42
- public_suffix (6.0.0)
42
+ public_suffix (6.0.1)
43
43
  racc (1.8.0)
44
44
  rainbow (3.1.1)
45
45
  rake (13.2.1)
data/lib/vidar/cli.rb CHANGED
@@ -97,7 +97,7 @@ module Vidar
97
97
  Log.info "Current kubectl context: #{kubectl_context}"
98
98
 
99
99
  Log.info "Looking for deploy hook..."
100
- template_name, error, status = Open3.capture3 "kubectl get cronjob deploy-hook-template -n #{Config.get!(:namespace)} -o name --ignore-not-found=true"
100
+ template_name, error, status = Run.kubectl_capture3("get cronjob deploy-hook-template -o name --ignore-not-found=true")
101
101
 
102
102
  slack_notification = SlackNotification.get
103
103
  honeycomb_notification = HoneycombNotification.get
data/lib/vidar/run.rb CHANGED
@@ -14,6 +14,10 @@ module Vidar
14
14
  system("#{kubectl_envs_string}kubectl --namespace=#{namespace} #{command}") || exit(1)
15
15
  end
16
16
 
17
+ def kubectl_capture3(command, namespace: Config.get!(:namespace))
18
+ Open3.capture3("#{kubectl_envs_string}kubectl #{command} --namespace=#{namespace}") || exit(1)
19
+ end
20
+
17
21
  def kubectl_envs_string
18
22
  https_proxy = Config.deploy_config.https_proxy
19
23
  "HTTPS_PROXY=#{https_proxy} " if https_proxy
data/lib/vidar/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Vidar
2
- VERSION = '1.13.0'.freeze
2
+ VERSION = '1.13.1'.freeze
3
3
  end
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.13.0
4
+ version: 1.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-07-23 00:00:00.000000000 Z
12
+ date: 2024-07-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: colorize