helmsnap 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/helmsnap/check.rb +14 -14
- data/lib/helmsnap/command.rb +1 -1
- data/lib/helmsnap/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: bd784fcd78ea76eeb09743cf411b599c9cd6ab2299a1a647a037d0dcc667cdb0
|
4
|
+
data.tar.gz: a53928f8100827b1cd738840abff6ab43d875c0d44f5c7400023aa185d5ffeb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e5f7c1f7516cf65c9bcb3dde36977e739a5973ec7eaf7147380b797c9acc271b889a637fe6b9d3a6764839ed8362270e77c8160cc0fbcab1aee9775421c7c07
|
7
|
+
data.tar.gz: 12d305a44dfc9c07956aa84ad5c221a7bf2b404888be7750de6bdcd06617c69d13e9c0a1846e2f07157b029a55b23b867a541014e550f6d94e62989a569494a7
|
data/Gemfile.lock
CHANGED
data/lib/helmsnap/check.rb
CHANGED
@@ -12,24 +12,24 @@ class Helmsnap::Check
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def call
|
15
|
-
Dir.mktmpdir
|
16
|
-
temp_dir_path = Pathname.new(temp_dir)
|
15
|
+
temp_dir_path = Pathname.new(Dir.mktmpdir)
|
17
16
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
17
|
+
Helmsnap::Generate.call(
|
18
|
+
chart_path: chart_path,
|
19
|
+
snapshots_path: temp_dir_path,
|
20
|
+
values_path: values_path,
|
21
|
+
)
|
23
22
|
|
24
|
-
|
25
|
-
|
23
|
+
result = Helmsnap.run_cmd("which", "colordiff", allow_failure: true)
|
24
|
+
util = result.success ? "colordiff" : "diff"
|
26
25
|
|
27
|
-
|
28
|
-
|
29
|
-
|
26
|
+
diff = Helmsnap.run_cmd(
|
27
|
+
util, "--unified", "--recursive", snapshots_path, temp_dir_path, allow_failure: true
|
28
|
+
).output
|
30
29
|
|
31
|
-
|
32
|
-
|
30
|
+
diff.strip.empty?
|
31
|
+
ensure
|
32
|
+
FileUtils.rmtree(temp_dir_path)
|
33
33
|
end
|
34
34
|
|
35
35
|
private
|
data/lib/helmsnap/command.rb
CHANGED
data/lib/helmsnap/version.rb
CHANGED