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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ll-innobackup.rb +6 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c35f4c09200f4b35c4d61a105db3607d5da92433
4
- data.tar.gz: 6f0b2de25ce63228f139b5412bd00186de19ccfa
3
+ metadata.gz: e822135070e395eb93e490d1fb13c69e7ca4bcb7
4
+ data.tar.gz: 0abda3c7121759c254444334397d7b893c79ad89
5
5
  SHA512:
6
- metadata.gz: d6fd6d442021ba9652cd77242c602df6e606ed3ff7b824bafb48ac5e94396d30c42fdab4cec02e72ac8b72823c8bcb3dd74965eec5c4c78598d64d0863e79d18
7
- data.tar.gz: b58cf3dd299bf77366d760cd45d80042e2396040005a8ad5dfbc72286211408461c577383003b6cc2c3f3cfbbf0f5e31e1d9d2912aa1b5bf33f990d47dc74d93
6
+ metadata.gz: 1b970a97f2090c57a67015c32f386084dd58ef6bfd9c7f020a303156490da3e5e12827c2d79fdbb3bb349b0e2843aba82cd5967cfd574fbf299a7a4b77202a4e
7
+ data.tar.gz: 85e7231eb9aafed5b399b75cab6219eb11bbe1761c88aa9a3f9fb7c3a995302dea2108f7a09b824d873dd8bdf58733144225f384f3605ac938af741cec38b251
@@ -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 Innobackup::StateError, 'Unable to run innobackup correctly' unless @completed_inno
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 Innobackup::StateError, 'Unable to run aws upload correctly' unless @completed_aws
235
+ raise InnoBackup::StateError, 'Unable to run aws upload correctly' unless @completed_aws
236
236
  return record if success? && completed?
237
- rescue Innobackup::StateError => e
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.19
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-05 00:00:00.000000000 Z
11
+ date: 2019-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport