snapshot_archive 0.23.0 → 0.25.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: f8135b5da8cb2ba0c10a0758f51885d7bc341bf70b3b1607f5b902cc10fc0e36
4
- data.tar.gz: 29eb19fb7d5c4221eee6bbf019121557f79129f8b76b2f3adf619c95dd08d31d
3
+ metadata.gz: 9fb1d0bfc2d7e5f96b63e32f277bb4e05b6fc0462eb968679b3dced96a278779
4
+ data.tar.gz: 53ca85c76eeee4825d29be7d73efd485b3a6f832f0528a516e7db7c6eb217e08
5
5
  SHA512:
6
- metadata.gz: 58bc9e336c62afe9d94a7846f855e006556465ba8ba91c9385b6af5277838782c6568b93bbb4bb3ed94e7675807a87a11cc04d7f85277b75bf01224e426c2a76
7
- data.tar.gz: aa4abe8a459183efe33c42c8c87dbf1f6cbf21523015e1910921f390c979b58f72f93a39e2e5b9587658d3d70da892aabbb1f916c76517a9a8c8596606d0d10e
6
+ metadata.gz: e175468cfe68926e44e42e029528dfbf494eebdd253a76123b2ec459d99973fb4c5ee8e62dbce83d411551e3ec57c96dccd2f0b61308f3df3102f9431051ed83
7
+ data.tar.gz: 0251c552f40e6c56fe7ab55feaac59ce8f8c85df77c8fb77ae7ca117e53e8a6058772af79e89652e03e1641bc73f0ddf515d075f248fb8619ff69a5420f66b6b
@@ -29,7 +29,7 @@ SnapshotArchive.configure do |config|
29
29
  SnapshotArchive::Cfg.bind_backup("mysql", db_names).backup(*args, **opts)
30
30
  end
31
31
 
32
- store.restore do |metadata|
32
+ store.restore do |metadata:|
33
33
  SnapshotArchive::Cfg.store("mysql").restore(metadata: metadata)
34
34
  end
35
35
  end
@@ -16,9 +16,9 @@ module SnapshotArchive
16
16
  def run(cmd)
17
17
  debug(cmd)
18
18
 
19
- `#{cmd}`
19
+ `#{cmd} 2>&1`
20
20
  .split("\n")
21
- .tap { raise CommandFailureError.new(cmd) unless $? == 0 }
21
+ .tap { raise CommandFailureError.new([cmd, _1].join("\n---\n")) unless $? == 0 }
22
22
  end
23
23
 
24
24
  def warn(msg)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SnapshotArchive
4
- VERSION = "0.23.0"
4
+ VERSION = "0.25.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.23.0
4
+ version: 0.25.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-04-01 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander