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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ae526f7e855d2833a340fc35f9363f212fcfe687aebca504dc0e99e704c6393e
4
- data.tar.gz: 41787e81ec544fc491d2273763a837594415a7792c823faf07fab94e72388845
3
+ metadata.gz: bd784fcd78ea76eeb09743cf411b599c9cd6ab2299a1a647a037d0dcc667cdb0
4
+ data.tar.gz: a53928f8100827b1cd738840abff6ab43d875c0d44f5c7400023aa185d5ffeb3
5
5
  SHA512:
6
- metadata.gz: 65fc8371b350ab030be1503d392b0a2fd5abbe9d68c64bffa1b44662d1c8339e3358b3e15d63de723498732e67540c8d1768272983213cbd7d0f0be47a6c4b1b
7
- data.tar.gz: 3370e09e93f1a0d6b43eb2913046ce44c73905c8f61f6ce79601b627795b2aa69f67c1f7f110fa0f9ef39e0eabe6bf926633d2431d7250ac714d94ed819db3b0
6
+ metadata.gz: 9e5f7c1f7516cf65c9bcb3dde36977e739a5973ec7eaf7147380b797c9acc271b889a637fe6b9d3a6764839ed8362270e77c8160cc0fbcab1aee9775421c7c07
7
+ data.tar.gz: 12d305a44dfc9c07956aa84ad5c221a7bf2b404888be7750de6bdcd06617c69d13e9c0a1846e2f07157b029a55b23b867a541014e550f6d94e62989a569494a7
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- helmsnap (0.4.0)
4
+ helmsnap (0.4.1)
5
5
  colorize
6
6
 
7
7
  GEM
@@ -12,24 +12,24 @@ class Helmsnap::Check
12
12
  end
13
13
 
14
14
  def call
15
- Dir.mktmpdir do |temp_dir|
16
- temp_dir_path = Pathname.new(temp_dir)
15
+ temp_dir_path = Pathname.new(Dir.mktmpdir)
17
16
 
18
- Helmsnap::Generate.call(
19
- chart_path: chart_path,
20
- snapshots_path: temp_dir_path,
21
- values_path: values_path,
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
- result = Helmsnap.run_cmd("which", "colordiff", allow_failure: true)
25
- util = result.success ? "colordiff" : "diff"
23
+ result = Helmsnap.run_cmd("which", "colordiff", allow_failure: true)
24
+ util = result.success ? "colordiff" : "diff"
26
25
 
27
- diff = Helmsnap.run_cmd(
28
- util, "--unified", "--recursive", snapshots_path, temp_dir_path, allow_failure: true
29
- ).output
26
+ diff = Helmsnap.run_cmd(
27
+ util, "--unified", "--recursive", snapshots_path, temp_dir_path, allow_failure: true
28
+ ).output
30
29
 
31
- diff.strip.empty?
32
- end
30
+ diff.strip.empty?
31
+ ensure
32
+ FileUtils.rmtree(temp_dir_path)
33
33
  end
34
34
 
35
35
  private
@@ -38,7 +38,7 @@ class Helmsnap::Command
38
38
  if !success && !allow_failure
39
39
  Helmsnap::Console.error(stderr, err.read)
40
40
  Helmsnap::Console.error(stderr, "Command failed with status #{exit_status.to_i}")
41
- abort
41
+ exit 1
42
42
  end
43
43
 
44
44
  Helmsnap::Console.print(stdout, "\n")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Helmsnap
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: helmsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuri Smirnov