snapshot_archive 0.19.0 → 0.21.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: 8f8d2b4c725a1f21bdf25d688680e486fb3691b852b384953aa375f8fc609e02
4
- data.tar.gz: e83411afc3f507e4a693a79b07fc25de87f039cd90824d843ea18e3cdd63a1bb
3
+ metadata.gz: 1125fd70197585f350883edd86a53fac23b3ed69842d4b9d4ff8efd2e41a8f6d
4
+ data.tar.gz: 321ea6ce8c4ecb297f4aad805238e06ba60e8bb1c99583224a85009e949eac96
5
5
  SHA512:
6
- metadata.gz: acf170a6eeed4711b778d4aab84c737844ba3777ff3915825e79addeeca549cc1907595f080a6066fda368c007391d28e06f7853d9f57a8ea7e68723cf97369c
7
- data.tar.gz: 7e5dbe60cc99216411bfa2d2f29871b8aa9c8641815d4cb3e2f20cc0302fc300105169aa37282599a5b6595d0563407297069a73c285d906d2606a4374b6a841
6
+ metadata.gz: 6ee78f75b47b90926ed21e4c1694b3af189867a7e38b674b7fa93e12cb42923773ec1cea78564b8dcbdc60a98fb1959934a85f1d1b23cf7057f9c5563e0cc379
7
+ data.tar.gz: baa352e68bbccb635e2caf625fe5435cdd90c30a8e558276d804fc24651fe65b99541c7302507dc946473c91a56a62277c0a6c487ca5e093baa7d354a6cc8d7e
@@ -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
@@ -6,7 +6,7 @@ SnapshotArchive.configure do |config|
6
6
  )
7
7
 
8
8
  config.register_store("mysql_rails") do |store|
9
- store.backup do |dir, _args|
9
+ store.backup do |*args, **opts|
10
10
  existing_databases = (
11
11
  config
12
12
  .shell
@@ -26,11 +26,11 @@ SnapshotArchive.configure do |config|
26
26
 
27
27
  next if db_names.empty?
28
28
 
29
- SnapshotArchive::Cfg.bind_backup("mysql", db_names).backup(dir)
29
+ SnapshotArchive::Cfg.bind_backup("mysql", db_names).backup(*args, **opts)
30
30
  end
31
31
 
32
32
  store.restore do |metadata|
33
- SnapshotArchive::Cfg.store("mysql").restore(metadata)
33
+ SnapshotArchive::Cfg.store("mysql").restore(metadata: metadata)
34
34
  end
35
35
  end
36
36
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.19.0"
4
+ VERSION = "0.21.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.19.0
4
+ version: 0.21.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-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander