snapshot_archive 0.18.0 → 0.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/snapshot_archive/archives.rb +1 -1
- data/lib/snapshot_archive/repositories.rb +2 -1
- data/lib/snapshot_archive/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 343cae8cf1244c3678c4ade0847ebd0a88c7c2e30ddf232cab6947e191f167c9
|
4
|
+
data.tar.gz: 230397ff95dae9a7310eb76773f3e5649be397e11ed055b1e0bedbf38d415d4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58b03d3bbe6ce5fe88f40803d97597f8864182fa2ef35c89244b8583fc95a3a838bc3d112d00d4ae58b0334ecbd458bae901b115ed22c390f399fc079a63545e
|
7
|
+
data.tar.gz: 45feaf3369099eb7561842db94bd269bc973017bf8d10a3342cd71dd9832aca895ae17183dfedfbd4c7945af5348ba5490eef31cefe9324f6be6e3ce771601c2
|
@@ -67,7 +67,8 @@ module SnapshotArchive
|
|
67
67
|
end
|
68
68
|
|
69
69
|
def delete(id)
|
70
|
-
|
70
|
+
dir = File.join(path, id)
|
71
|
+
md_path = File.join(dir, "metadata.json")
|
71
72
|
raise ArgumentError.new("unknown snapshot: #{id}") unless File.exist?(md_path)
|
72
73
|
metadata = JSON.parse(File.read(md_path))
|
73
74
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: snapshot_archive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Kinnecom
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|