ll-innobackup 0.1.19 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ll-innobackup.rb +6 -3
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e822135070e395eb93e490d1fb13c69e7ca4bcb7
|
|
4
|
+
data.tar.gz: 0abda3c7121759c254444334397d7b893c79ad89
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1b970a97f2090c57a67015c32f386084dd58ef6bfd9c7f020a303156490da3e5e12827c2d79fdbb3bb349b0e2843aba82cd5967cfd574fbf299a7a4b77202a4e
|
|
7
|
+
data.tar.gz: 85e7231eb9aafed5b399b75cab6219eb11bbe1761c88aa9a3f9fb7c3a995302dea2108f7a09b824d873dd8bdf58733144225f384f3605ac938af741cec38b251
|
data/lib/ll-innobackup.rb
CHANGED
|
@@ -229,12 +229,12 @@ class InnoBackup
|
|
|
229
229
|
return unless valid_commands?
|
|
230
230
|
`#{innobackup_command}`
|
|
231
231
|
@completed_inno = $CHILD_STATUS == 0
|
|
232
|
-
raise
|
|
232
|
+
raise InnoBackup::StateError, 'Unable to run innobackup correctly' unless @completed_inno
|
|
233
233
|
`#{aws_command}`
|
|
234
234
|
@completed_aws = $CHILD_STATUS == 0
|
|
235
|
-
raise
|
|
235
|
+
raise InnoBackup::StateError, 'Unable to run aws upload correctly' unless @completed_aws
|
|
236
236
|
return record if success? && completed?
|
|
237
|
-
rescue
|
|
237
|
+
rescue InnoBackup::StateError => e
|
|
238
238
|
revert_aws
|
|
239
239
|
rescue InnoBackup::NoStateError => e
|
|
240
240
|
STDERR.puts e.message
|
|
@@ -351,6 +351,9 @@ class InnoBackup
|
|
|
351
351
|
|
|
352
352
|
class NoStateError < StandardError
|
|
353
353
|
end
|
|
354
|
+
|
|
355
|
+
class StateError < StandardError
|
|
356
|
+
end
|
|
354
357
|
end
|
|
355
358
|
end
|
|
356
359
|
InnoBackup.new(InnoBackup.options).backup if $PROGRAM_NAME == __FILE__
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ll-innobackup
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.20
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Stuart Harland, LiveLink Technology Ltd
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2019-08-
|
|
11
|
+
date: 2019-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|