kuber_kit 1.3.3 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +2 -2
- data/lib/kuber_kit/artifacts_sync/strategies/git_updater.rb +1 -1
- data/lib/kuber_kit/core/context_helper/local_context_helper.rb +2 -2
- data/lib/kuber_kit/shell/commands/git_commands.rb +1 -4
- data/lib/kuber_kit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5a002f10a60a0112f9f4e38458ad2cb740099b20bc150da35b0769079ed3ab82
|
4
|
+
data.tar.gz: 7be920f4ac8c9990b2dba1376aadf6c9a740fe0f8ddad62e0fdabb7b7bf2d6b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c20f225ecc8a220641a6cba7e590a446a6443675ae5802267fb035bc7c33e5f220d03b029610770d93b9214544297930d7efa5bb8dc14fb4c1a6d83bae2a3c3d
|
7
|
+
data.tar.gz: 9d836b6d6240d727fb707c803a75f1350073c5b0cd423e177d3bb3fe72a4057603addcf5a26f765c148fb5660269864bbbd6714c6229eb3357082c400f98cee0
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
**1.3.5**
|
2
|
+
- Update git force_pull_repo command to improve performance
|
3
|
+
|
4
|
+
**1.3.4**
|
5
|
+
- Fix checking branch name in git artifact update
|
6
|
+
- Make LocalContextHelper compatible with ruby 3
|
7
|
+
|
1
8
|
**1.3.3**
|
2
9
|
- Support "partials" in the templates with "render" method.
|
3
10
|
- Cleanup artifacts after deployment if cache_result: false
|
data/README.md
CHANGED
@@ -19,8 +19,8 @@ Please install specific kuber_kit version, depending on Ruby version.
|
|
19
19
|
| Ruby Version | KuberKit Version |
|
20
20
|
| ------------ | ------------ |
|
21
21
|
| 2.6 | 1.0.1 |
|
22
|
-
| 2.7 | 1.1.
|
23
|
-
| > 3.0 | 1.
|
22
|
+
| 2.7 | 1.1.6 |
|
23
|
+
| > 3.0 | 1.3.3 |
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
@@ -37,7 +37,7 @@ class KuberKit::ArtifactsSync::Strategies::GitUpdater < KuberKit::ArtifactsSync:
|
|
37
37
|
end
|
38
38
|
|
39
39
|
target_branch = git_commands.get_branch_name(shell, repo_path)
|
40
|
-
if target_branch != artifact.branch
|
40
|
+
if target_branch != artifact.branch.to_s
|
41
41
|
return false
|
42
42
|
end
|
43
43
|
|
@@ -4,11 +4,11 @@ class KuberKit::Core::ContextHelper::LocalContextHelper < KuberKit::Core::Contex
|
|
4
4
|
@variables = variables
|
5
5
|
end
|
6
6
|
|
7
|
-
def method_missing(method_name, *args, &block)
|
7
|
+
def method_missing(method_name, *args, **kwargs, &block)
|
8
8
|
if @variables.has_key?(method_name)
|
9
9
|
@variables[method_name]
|
10
10
|
else
|
11
|
-
@parent_context_helper.send(method_name, *args, &block)
|
11
|
+
@parent_context_helper.send(method_name, *args, **kwargs, &block)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
end
|
@@ -36,11 +36,8 @@ class KuberKit::Shell::Commands::GitCommands
|
|
36
36
|
shell.exec!([
|
37
37
|
"cd #{path}",
|
38
38
|
"git add .",
|
39
|
-
"git reset HEAD --hard",
|
40
39
|
"git fetch origin #{branch}",
|
41
|
-
"git
|
42
|
-
"git reset --hard '@{u}'",
|
43
|
-
"git pull --force",
|
40
|
+
"git reset --hard '@{u}'"
|
44
41
|
].join(" && "), merge_stderr: true)
|
45
42
|
end
|
46
43
|
end
|
data/lib/kuber_kit/version.rb
CHANGED