kuber_kit 0.3.6 → 0.3.7

This diff has not been reviewed by any users.
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: 1a2b626e99cbab815d586f4ca2c05796f367f25058502ab7f7b801a0d5191c70
4
- data.tar.gz: 281a2179e9e15d017c65d76c95e1ee863e370fa405ac80571747c2bebaca8e2c
3
+ metadata.gz: e15ac135b8fd4fab45aee2797f1aa6c836e299e40175e6c518761af7d7557587
4
+ data.tar.gz: a998aa67c2389dad43604b610471f9b196456dffb100926d25e3acbf6782494f
5
5
  SHA512:
6
- metadata.gz: c755057ec72e897bce215977d2fef6e2b5bd2e72ae6b7bf6bd58774605bed91d22a73dda41a68783ea36e4c1a375eff432db6764ff1295baae243a0a2ca8a7e4
7
- data.tar.gz: fbb4da6342592b1f5506911787f763f567804aa71fc975a76650e7b8e04137f10be5062e1bafa7ef89ec8bc1c0d86d53d73b9771cb2a90edc6debd7666c1212d
6
+ metadata.gz: ac0c29ae11579f2431f8fc7972027b8551866d96cc212d4117eddfb91694d7680a73f0d6d867f955746475e404cd6136b8d4ad228e5489366df7f881cbba92be
7
+ data.tar.gz: d29aaa6aa028eef516f91a8f9081fd4a9d32c5c9f850755c7bea8583240c9b3bf2636dc2bab745fa778062c2a45334fc043d49d69d10963c574be4f26fc66044
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- kuber_kit (0.3.6)
4
+ kuber_kit (0.3.7)
5
5
  cli-ui
6
6
  contracts-lite
7
7
  dry-auto_inject
@@ -16,7 +16,7 @@ class KuberKit::Actions::KubectlLogs
16
16
  pod_name = ui.prompt("Please select deployment to attach", deploy_options)
17
17
  end
18
18
 
19
- args = ""
19
+ args = nil
20
20
  if options[:follow]
21
21
  args = "-f"
22
22
  end
@@ -36,6 +36,11 @@ class KuberKit::ServiceDeployer::Strategies::Docker < KuberKit::ServiceDeployer:
36
36
  docker_commands.delete_container(shell, container_name)
37
37
  end
38
38
 
39
- docker_commands.run(shell, image.remote_registry_url, run_args: docker_run_args, run_command: docker_run_command)
39
+ docker_commands.run(
40
+ shell, image.remote_registry_url,
41
+ run_args: docker_run_args,
42
+ run_command: docker_run_command,
43
+ detached: !!strategy_options[:detached]
44
+ )
40
45
  end
41
46
  end
@@ -26,8 +26,9 @@ class KuberKit::ServiceDeployer::Strategies::DockerCompose < KuberKit::ServiceDe
26
26
  command_name = strategy_options.fetch(:command_name, "bash")
27
27
 
28
28
  docker_compose_commands.run(shell, config_path,
29
- service: service_name,
30
- command: command_name,
29
+ service: service_name,
30
+ command: command_name,
31
+ detached: !!strategy_options[:detached]
31
32
  )
32
33
  end
33
34
  end
@@ -14,9 +14,10 @@ class KuberKit::Shell::Commands::DockerCommands
14
14
  shell.exec!(%Q{docker push #{tag_name}})
15
15
  end
16
16
 
17
- def run(shell, image_name, run_args: nil, run_command: nil)
17
+ def run(shell, image_name, run_args: nil, run_command: nil, detached: false)
18
18
  command_parts = []
19
19
  command_parts << "docker run"
20
+ command_parts << "-d" if detached
20
21
  command_parts << run_args if run_args
21
22
  command_parts << image_name
22
23
  command_parts << run_command if run_command
@@ -1,13 +1,18 @@
1
1
  class KuberKit::Shell::Commands::DockerComposeCommands
2
- def run(shell, path, service:, command:, interactive: false)
2
+ def run(shell, path, service:, command:, interactive: false, detached: false)
3
3
  command_parts = [
4
4
  "docker-compose",
5
- "-f #{path}",
6
5
  "run",
7
- service,
8
- command
6
+ "-f #{path}",
9
7
  ]
10
8
 
9
+ if detached
10
+ command_parts << "-d"
11
+ end
12
+
13
+ command_parts << service
14
+ command_parts << command
15
+
11
16
  if interactive
12
17
  shell.interactive!(command_parts.join(" "))
13
18
  else
@@ -1,3 +1,3 @@
1
1
  module KuberKit
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuber_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Khaziev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
  date: 2021-01-07 00:00:00.000000000 Z
@@ -293,7 +293,7 @@ homepage: https://github.com/ArtStation/kuber_kit
293
293
  licenses:
294
294
  - MIT
295
295
  metadata: {}
296
- post_install_message:
296
+ post_install_message:
297
297
  rdoc_options: []
298
298
  require_paths:
299
299
  - lib
@@ -308,8 +308,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
308
308
  - !ruby/object:Gem::Version
309
309
  version: '0'
310
310
  requirements: []
311
- rubygems_version: 3.0.9
312
- signing_key:
311
+ rubygems_version: 3.0.8
312
+ signing_key:
313
313
  specification_version: 4
314
314
  summary: Docker Containers Build & Deployment
315
315
  test_files: []