kuber_kit 0.9.4 → 0.9.7

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: f5f0b92eec3497c897de06a8a4f15d58e2244574d5f6b58d7987de53eacc933c
4
- data.tar.gz: 8e27cba7749afc8d12a46e6efcc4800fcb9fadfa41003a04623af4c4eb7b4095
3
+ metadata.gz: 22fa30a7280f081e3071589c5573ecfef1c92d0da6c93f887a4270ed8c3569a7
4
+ data.tar.gz: 93bb6739fea844065a2a766888c5a1dbd0bb5be81939f6c22673d5cf04fcc1fd
5
5
  SHA512:
6
- metadata.gz: 202a9ad0f727b595521985137afa1f68ffd5ec0ab156887bbd1d1e38226fd9c14e5ffdf191a83c12a92f7944f0130f2f06e2787dfd7a14502db2f6096d1a7aed
7
- data.tar.gz: a3e15732d176ea3efb94560e8f5d747bae0fc59153a49e4fcf3364726946aa42ef4c2161571f69d3ffbe91956a92316df89149e3898292315f8d0bf920a69b0b
6
+ metadata.gz: 2881ba6ef63cc7a93674628308c0f50b3a1d41999b9e4d7068e32d3df046321640c3f1ef4eeadd807ca0382f6b132630985ef113f2a54970b44488312cec4b1a
7
+ data.tar.gz: 5bf0b67143f884538587bd62c7817196417d7f6280af5066260fc3ca4bcc6ce86e4d7ff81b7178bb8559e500c40456f9d51e805ddf318e2c76d9777cf0805ead
data/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- **0.9.0-0.9.4**
1
+ **0.9.0-0.9.7**
2
2
  - Allow skipping confirmation during deployment
3
3
  - Added `kit sh` command to create a new shell
4
4
  - Use tmp dir as image builds parent dir for remote compilation
@@ -59,7 +59,7 @@ class KuberKit::Shell::LocalShell < KuberKit::Shell::AbstractShell
59
59
  end
60
60
 
61
61
  def replace!(shell_name: nil, env: [], log_command: true)
62
- shell_name ||= "$SHELL"
62
+ shell_name ||= "$SHELL --login"
63
63
  command = (env + [shell_name]).join(" ")
64
64
 
65
65
  if log_command
@@ -17,6 +17,6 @@ class KuberKit::ShellLauncher::Strategies::Kubernetes < KuberKit::ShellLauncher:
17
17
  kubectl_commands.set_namespace(shell, deployer_namespace, kubeconfig_path: kubeconfig_path)
18
18
  end
19
19
 
20
- shell.replace!(env: ["KUBECONFIG=#{kubeconfig_path}"])
20
+ shell.replace!(env: ["KUBECONFIG=#{kubeconfig_path}", "KUBER_KIT_SHELL_CONFIGURATION=#{KuberKit.current_configuration.name}"])
21
21
  end
22
22
  end
@@ -11,17 +11,17 @@ class KuberKit::Tools::BuildDirCleaner
11
11
 
12
12
  dirs_to_delete.each do |dir|
13
13
  bash_commands.rm_rf(shell, dir)
14
+ rescue KuberKit::Shell::AbstractShell::ShellError => e
15
+ ui.print_debug "BuildDirCleaner", "Error while removing directory: #{e.inspect}"
14
16
  end
17
+ rescue KuberKit::Shell::AbstractShell::DirNotFoundError
18
+ ui.print_debug "BuildDirCleaner", "Build directory not found"
15
19
  end
16
20
 
17
21
  private
18
22
  def get_ancient_builds_dirs(shell, parent_dir:)
19
23
  all_dirs = shell.list_dirs("#{parent_dir}/*")
20
24
 
21
- all_dirs.each do |dir|
22
- puts bash_commands.ctime(shell, f).inspect
23
- end
24
-
25
25
  skip_dirs = all_dirs
26
26
  .sort_by{ |f| bash_commands.ctime(shell, f) }
27
27
  .reverse[0...KEEP_DIRS_COUNT]
@@ -1,3 +1,3 @@
1
1
  module KuberKit
2
- VERSION = "0.9.4"
2
+ VERSION = "0.9.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuber_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Khaziev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-03 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: contracts