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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ab6c5f3227409541f5e84472355b4294413a5074d6b9b90042e4c37bd6990b3
4
- data.tar.gz: 49a0bfb40395b586976a9e61d24584b874c29aa9d34a1c6a0d92214bc6bb5af7
3
+ metadata.gz: 343cae8cf1244c3678c4ade0847ebd0a88c7c2e30ddf232cab6947e191f167c9
4
+ data.tar.gz: 230397ff95dae9a7310eb76773f3e5649be397e11ed055b1e0bedbf38d415d4c
5
5
  SHA512:
6
- metadata.gz: 0e4915590bcb1db0c17d2d79a19dc90e06d54357b175cdfdce97120ca2c290068eef50c21767bb158cd5c324f386aa77fda7c9a4fe6b5f5d279c9150cda6bb7b
7
- data.tar.gz: ee565bed9843a017dd8ee3fc3f044699c93087e6a7d5354ba934e773ff0cc203948408b89d2178240ec273cf70879611c7279ed93e7d83ba38b58016d28b1110
6
+ metadata.gz: 58b03d3bbe6ce5fe88f40803d97597f8864182fa2ef35c89244b8583fc95a3a838bc3d112d00d4ae58b0334ecbd458bae901b115ed22c390f399fc079a63545e
7
+ data.tar.gz: 45feaf3369099eb7561842db94bd269bc973017bf8d10a3342cd71dd9832aca895ae17183dfedfbd4c7945af5348ba5490eef31cefe9324f6be6e3ce771601c2
@@ -43,7 +43,7 @@ module SnapshotArchive
43
43
  def call
44
44
  metadata.fetch("stores").reverse.each do |store_metadata|
45
45
  store = Cfg.instance.store(store_metadata.fetch("type"))
46
- store.restore(store_metadata)
46
+ store.restore(metadata: store_metadata)
47
47
  end
48
48
  end
49
49
  end
@@ -67,7 +67,8 @@ module SnapshotArchive
67
67
  end
68
68
 
69
69
  def delete(id)
70
- md_path = File.join(path, id, "metadata.json")
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.18.0"
4
+ VERSION = "0.20.0"
5
5
  end
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.18.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-09 00:00:00.000000000 Z
11
+ date: 2024-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander