kuber_kit 1.1.6 → 1.1.7
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 +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: ef717cb98933263324df5b28cc123922f86c854fb00c197ab06d842cb2c5aba7
|
|
4
|
+
data.tar.gz: d8b05a51b7f39dc2ea8f7fc888e835e5091209967c374e9733793d6a5151f6b1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: '0583a4d9c0f1b75591f43768a5b7b01f5aa5b9c58584b628c958724eff38500a8e21e543ebb0650f56bd14bc107175c406b61caa07eead518f5f281bfbe1b347'
|
|
7
|
+
data.tar.gz: 8a29e370a3063c020457d5cb26b26d9746ad88da64ec5808f2c4605ec3e4e329bcf5e50127c25dc060a0966771447125877d1f0a9eec720d446f48bdc4c37502
|
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