snapshot_archive 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/snapshot_archive/default_configuration.rb +2 -2
- 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: 39922e21c1be277d98cd3286c0e5af704208c4699f8131d37691c9f9e1c789ab
|
4
|
+
data.tar.gz: 90d276037f30a35799d9e868f7ef391187d4ef1864ccec3dbb8d51a9108690c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a2bf6c53eb910b5f2b2843104018db8e248cda32035fd6a5658b17c1fde22bd32de5d506e8b1cfa5308e4ceb56c4dbe66136a51e3e251b75155ebff1460f377
|
7
|
+
data.tar.gz: 70a956f0b31dbb41e30e72bc4bccb54fc0c6684e075637256a98306a34c54bbabe53f96c99a5041193522a80295baffea8d756c2331d1396df6c5be1e4ca3176
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -133,7 +133,7 @@ SnapshotArchive.configure do |config|
|
|
133
133
|
|
134
134
|
# Using the store builder:
|
135
135
|
|
136
|
-
config.register_store("
|
136
|
+
config.register_store("my_custom_store") do |store|
|
137
137
|
store.backup do |dir, args=[]|
|
138
138
|
path = File.join(dir, "my_custom_store.txt")
|
139
139
|
File.write(path, "received args: #{args}")
|
@@ -26,11 +26,11 @@ SnapshotArchive.configure do |config|
|
|
26
26
|
|
27
27
|
next if db_names.empty?
|
28
28
|
|
29
|
-
Cfg.bind_backup("mysql", db_names).backup(dir)
|
29
|
+
SnapshotArchive::Cfg.bind_backup("mysql", db_names).backup(dir)
|
30
30
|
end
|
31
31
|
|
32
32
|
store.restore do |metadata|
|
33
|
-
Cfg.store("mysql").restore(metadata)
|
33
|
+
SnapshotArchive::Cfg.store("mysql").restore(metadata)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
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.3.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: 2022-04-
|
11
|
+
date: 2022-04-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|