snapshot_archive 0.16.0 → 0.17.0

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: 6e85e9702884bba227f834ba3ca4c7d347803bd063b245d22b85bae0808285b4
4
- data.tar.gz: f961470cf8cf6f94be884bb5a52962088cacd6d0c6905685381c295ec0cfaeea
3
+ metadata.gz: 962b820382336c784bdd9c7ad92425c7091d38b0bcefc76e35f7119b61bf7747
4
+ data.tar.gz: 0cc49e82c349093dcc4daf9bb8ccee842fa1ad7f15b7eeef6e89fbfeffd56cca
5
5
  SHA512:
6
- metadata.gz: dc227fea293c769b9af048f23eeb98e4bcfe95a109ec8608a9f06a58576a76cafe3c9004cceb73181c3cf701c0026769c008141bc4c7e08b0f31cfad093c7497
7
- data.tar.gz: 639891a32eff28125d49c070a8cd4251046cb01230c4f672d5cc27370b0d923e7aebef7903590c48639f97340cd7b2d0e1e0e56ef68d4220baf499f522573dc1
6
+ metadata.gz: 1db2bcd94c8f04ca61a59eba5ae73a5bcd9b3b52f54c350dc60a2e2fb41d6495d75142bba706c4c9d9a5f954bb9d7cc80c66b9619495a6bd3d88fde25330cb79
7
+ data.tar.gz: 3c2de8620a89b97b63df6d641d6dcef5e0114e60705cef161933085adb63dcf3f455ab37fb2566acb36899cd9fa6806589fed8ef77a5a84dead0b1c512859c0b
@@ -67,9 +67,9 @@ module SnapshotArchive
67
67
  end
68
68
 
69
69
  def delete(id)
70
- md_path = File.read(File.join(path, id, "metadata.json"))
70
+ md_path = File.join(path, id, "metadata.json")
71
71
  raise ArgumentError.new("unknown snapshot: #{id}") unless File.exist?(md_path)
72
- metadata = JSON.parse(md_path)
72
+ metadata = JSON.parse(File.read(md_path))
73
73
 
74
74
  Cfg.shell.info("Running delete hooks: #{id}")
75
75
  Archives::Delete.call(metadata.dig("archive"))
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.16.0"
4
+ VERSION = "0.17.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom