snapshot_archive 0.9.0 → 0.10.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: 5e7e55a13d956b69746a56a472a0bb5bf0fca87c8455622ba0486d081b84981a
4
- data.tar.gz: 0cb06eb238ad6d518515847751f7c1dfdb98d0f234c47ab10c798ff7c828a5de
3
+ metadata.gz: 0a509e2459e8eacc481040b2a3b8abfc9479a0004ab48439eefd4a2c644232e8
4
+ data.tar.gz: cb7ed097f707afc0f3fdbf69ba5ba9df13fc656d2d8f4dc4e6a9b6a77958b8b6
5
5
  SHA512:
6
- metadata.gz: 13abb74a373a7d31f81704872a7e6d5ab312de98dff229333fbd2ccebb220c5c56a46ec5bbfe0a0035ee496ea75a2d34942f357a5dd5469f8b4cd6c8cc5415cf
7
- data.tar.gz: fae50ea54d90d52261a5959cf964b4e1849d0564401c06fff92075288b8cb02a53668179afc9689e70cf8aa9cedde1c1f244f119aa4ded59241d07ab398dee34
6
+ metadata.gz: 797b07563f5d6328fcee8e19e7da4c137e358dfe763bf974cd6856178ad1c5d85fd1727aa1eafeee39417c3d7354589abccb9206b46ec5ac5e1695907cb7b3f9
7
+ data.tar.gz: 6820e7d7a20c4efae51144a2e31a050f69b4fbee92f4634055c369abd460e437a45fe6f892f1af42d667e4bc0bdc66c5ed887f2e92c71514ff5330b465ed1197
@@ -14,7 +14,11 @@ module SnapshotArchive
14
14
  def call
15
15
  stores_metadata = (
16
16
  stores
17
- .map { |name, store| store.backup(dir)&.merge(type: name) }
17
+ .map { |name, store|
18
+ store_dir = FileUtils.mkdir(File.join(dir, name))
19
+
20
+ store.backup(store_dir)&.merge(type: name)
21
+ }
18
22
  .compact
19
23
  )
20
24
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.9.0"
4
+ VERSION = "0.10.0"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshot_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Kinnecom