snapshot_archive 0.1.0 → 0.5.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/exe/snap +1 -0
- data/lib/snapshot_archive/cfg.rb +1 -0
- data/lib/snapshot_archive/default_configuration.rb +2 -2
- data/lib/snapshot_archive/formatters.rb +3 -0
- 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: c72888304530ecfac2227fce9eb2698273c8347812e11b69d7b2c0aac9ec306d
|
4
|
+
data.tar.gz: f4d008a447a1a51d70b7cffe66e94aa4d08c3d50ab23eefb111ed495de7913b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b336220dacb18e3fb5baf2d54ef4bc2c1cf51af03cc4990acbba58dc6c883ad8d9898305d65924335a08040f536a26e1401ca80f038266009f4598ffe10125c9
|
7
|
+
data.tar.gz: d305586dfa5669d60909a9703490f77eb64fb544035424c4c10668cbf1e926f9001c24cc6690d98f15fa2f50a0da76bfbc09116d873007d62fefebe9cf6374ef
|
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}")
|
data/exe/snap
CHANGED
data/lib/snapshot_archive/cfg.rb
CHANGED
@@ -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.5.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-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|