mina-kubernetes 3.1.0 → 3.1.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: e4803de1f3f3decf1da5772d6ac1a9cbaa20810e722fc273e981071f57b219b7
4
- data.tar.gz: 5b011e4604e76d94866888c5ab3676b740237d4cb5becf04e2a24f857c144960
3
+ metadata.gz: bf6c539c0e94e2c68db1032c1d2a285af1302226f235cb92c09e45110988d22b
4
+ data.tar.gz: 38991bf88f16f35bfa344dd3975e98b66a843244b8cfbc80a463a4c17c45c4e6
5
5
  SHA512:
6
- metadata.gz: 32284456c631a418eae7c04feca2d3ce5b059095012af00c90e5fd291002844f68aafdf919a6c435afb7c29ddc05c7f0c0f6527e71de0bfc945c43c13cf32bc6
7
- data.tar.gz: c468d84b45f08bddad72937500f8e7054c87b5ee1d14dbc8b7d7ae903c96ae900330e6063b3f8250ba2bb1849bbe8debde463565d741db5bd31c155ad33b43b5
6
+ metadata.gz: d37d41c55e7f2679d26f4136d0f0c3bef4f4fc52dc5d00abb3acb7169969d9167b8d1292d41a1bd60c6f8517d6f3d4eeafefa63b93c945ee3ef95b03d75b47ce
7
+ data.tar.gz: 8a38e99337fb690537c1f5224f7ad6249e013a494e0c4bb0452e3a9c19510f8dc345fa1f8f5d2dfc474810bc3be687f3474784e560ba51b71126cda7dd3c2b69
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Kubernetes
3
- VERSION = "3.1.0"
3
+ VERSION = "3.1.1"
4
4
  end
5
5
  end
@@ -93,7 +93,11 @@ def run_command(command, env_hash = {})
93
93
  env = env_hash.collect{|k,v| "--env #{k}=#{v}" }.join(" ")
94
94
  proxy_env = "HTTPS_PROXY=#{fetch(:proxy)}" if fetch(:proxy)
95
95
 
96
- default_pod_name = "#{`whoami`.strip}-#{command}-#{fetch(:branch)}".downcase.gsub(" ", "-").gsub(":", "-")
96
+ default_pod_name =
97
+ "#{`whoami`.strip}-#{command}-#{fetch(:branch)}"
98
+ .downcase
99
+ .gsub(/[ :.]/, "-")
100
+
97
101
  pod_name = TTY::Prompt.new.ask("What name for the pod?", :value => default_pod_name)
98
102
 
99
103
  run :local do
@@ -115,9 +119,9 @@ def run_command(command, env_hash = {})
115
119
  "Keep it and start one with a different name" => :other,
116
120
  }
117
121
  )
118
-
122
+
119
123
  delete_command = "#{proxy_env} kubectl delete pod #{pod_name} --context=#{fetch(:kubernetes_context)} --namespace=#{fetch(:namespace)}"
120
-
124
+
121
125
  case choice
122
126
  when :attach
123
127
  attach_command = "#{proxy_env} kubectl attach #{pod_name} -i --tty -c #{pod_name} --context=#{fetch(:kubernetes_context)} --namespace=#{fetch(:namespace)}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-kubernetes
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Antoine Sabourin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-10 00:00:00.000000000 Z
11
+ date: 2024-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler