minfra-cli 1.4.1 → 1.4.3

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: 16d7979548068a14a297be13086588549af443c92b2e34aad122cd2235fd4ed5
4
- data.tar.gz: 047e86635b52285501a533c2c87b36187025382dbf7429e6bfe0b17b0b4a9fc8
3
+ metadata.gz: 2ee7403eb8f3f5f3c9e6dd04d9eeef32035c5d3cf18dde0021eda7212b202ef7
4
+ data.tar.gz: 692c872591218c5b4b1df9b34795eea7b92d91b916d376a360c81c21d3342b7e
5
5
  SHA512:
6
- metadata.gz: 60d8a24e419d98ef0609da5d09d356a2ac4d01920d79e96ff80a28c6917afa22f09dcfc99138fe345375ddb5f282906e9339b692e49dba01fc93bcc072e6b52a
7
- data.tar.gz: 29324defe80574b1057cad503bfc15919cde0e6ae04d250bb6a346bacdb7e6612af5dccdadd01fc563ed962bf5328741e024d3c61310aec40c1505e10169fd74
6
+ metadata.gz: d647f1d0c84d68c1f2148f7993ee84076a6a2fe73a3b4cd7dfd92c2bda772e4f737eb702c9970d3b9658dbf92faf6d53507b1c4c030f3291c415f02da6933981
7
+ data.tar.gz: e3cf8822eea02dc932b1308b8f08522a079e15bd648dd121c2724fd7da97db6a5df89345faed1df17bab60beab160a30a8330ba12473afa33df0be21ee932968
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.4.3
2
+ * fixing exec for kubectl wrapper
3
+ * more logger usage less puts
4
+ # 1.4.2
5
+ * removing byebug
1
6
  # 1.4.1
2
7
  * kube command supports port-foward and finds the first fuzzy podname
3
8
  # 1.4.0
@@ -196,7 +196,6 @@ module Minfra
196
196
  options[:cluster])
197
197
 
198
198
  cluster = stack.cluster_name
199
- byebug
200
199
  if [resource, implicit_resource].include?('pod') && ['delete', 'describe', 'exec', 'logs', 'port-forward'].include?(subcommand)
201
200
  cmd_get_pods = "kubectl --kubeconfig #{kube_config_path} --context #{cluster} --namespace #{options[:stack]} get pod -o jsonpath='{range .items[*]}{.metadata.name}{\"\\n\"}'"
202
201
 
@@ -227,7 +226,8 @@ module Minfra
227
226
 
228
227
  if subcommand == 'exec'
229
228
  subcommand = 'exec -ti'
230
- extra_args << '--' << 'bash'
229
+ extra_args.unshift('--')
230
+ extra_args << 'bash' if args.empty?
231
231
  end
232
232
 
233
233
  extra_args = extra_args.join(' ')
@@ -15,7 +15,7 @@ module Minfra
15
15
  @deployment = deployment.freeze
16
16
  @cluster = cluster.freeze || l!("cluster").id
17
17
  @result_path = config.status_path.join('stacks', @cluster, name)
18
- puts "Stack selection: #{@name}, #{@config_path}, #{@cluster}, #{@result_path}"
18
+ debug "Stack selection: #{@name}, #{@config_path}, #{@cluster}, #{@result_path}"
19
19
  end
20
20
 
21
21
  def cluster_name
@@ -10,7 +10,7 @@ module Minfra
10
10
  end
11
11
 
12
12
  def run_cmd(cmd, type = :non_system, silence: false)
13
- puts cmd unless silence
13
+ debug(cmd)
14
14
  case type
15
15
  when :exec
16
16
  Kernel.exec(cmd)
@@ -1,5 +1,5 @@
1
1
  module Minfra
2
2
  module Cli
3
- VERSION = '1.4.1'.freeze
3
+ VERSION = '1.4.3'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minfra-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Schrammel
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-07 00:00:00.000000000 Z
11
+ date: 2022-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor