snapshot_archive 0.20.0 → 0.22.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: 343cae8cf1244c3678c4ade0847ebd0a88c7c2e30ddf232cab6947e191f167c9
4
- data.tar.gz: 230397ff95dae9a7310eb76773f3e5649be397e11ed055b1e0bedbf38d415d4c
3
+ metadata.gz: 3e179b4873e666798d64842c95ffc5ced090e86fd397662b2e8c0a82bcee44cd
4
+ data.tar.gz: ca9d90deb6deba132cda08faa9a7a1e67fceb9a6e6bb3f6920d72e8a3472126d
5
5
  SHA512:
6
- metadata.gz: 58b03d3bbe6ce5fe88f40803d97597f8864182fa2ef35c89244b8583fc95a3a838bc3d112d00d4ae58b0334ecbd458bae901b115ed22c390f399fc079a63545e
7
- data.tar.gz: 45feaf3369099eb7561842db94bd269bc973017bf8d10a3342cd71dd9832aca895ae17183dfedfbd4c7945af5348ba5490eef31cefe9324f6be6e3ce771601c2
6
+ metadata.gz: e985c80aff74be57d14dafad8f871ceb9eb9ff65a23e7f4509aa620cebc3413333ada392bc7152bc134a26e34a296daf51dd699f6d789d2370736926c6d5292d
7
+ data.tar.gz: edf94735ecbba03ba4386d4b4b736e16ec99255c4ac7f39bfa47972515714377ce3e34a1b39a4632e84df65a130a642000cf8159310a277eea3ed71c2d4ee693
@@ -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
 
@@ -39,7 +39,7 @@ module SnapshotArchive
39
39
  end
40
40
 
41
41
  attr_reader :dir, :names, :id
42
- def initialize(dir:, id:, args:)
42
+ def initialize(dir:, id:, args:, **)
43
43
  @dir = dir
44
44
  @id = id
45
45
  @names = args
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.20.0"
4
+ VERSION = "0.22.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.20.0
4
+ version: 0.22.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 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