ll-innobackup 0.1.12 → 0.1.13

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 (2) hide show
  1. data/lib/ll-innobackup.rb +9 -1
  2. metadata +1 -1
data/lib/ll-innobackup.rb CHANGED
@@ -204,6 +204,14 @@ class InnoBackup
204
204
  " #{expected_size} #{expires}"
205
205
  end
206
206
 
207
+ def aws_debug
208
+ "--debug" if debug_aws?
209
+ end
210
+
211
+ def debug_aws?
212
+ @debug_aws = (options['debug_aws'] == true)
213
+ end
214
+
207
215
  def valid_commands?
208
216
  File.exist?(backup_bin) && File.exist?(aws_bin)
209
217
  end
@@ -211,7 +219,7 @@ class InnoBackup
211
219
  def backup
212
220
  require 'English'
213
221
  exc = "#{innobackup_command} 2> #{innobackup_log} | "\
214
- "#{aws_command} > #{aws_log} 2>&1"
222
+ "#{aws_command} #{aws_debug} > #{aws_log} 2>&1"
215
223
  `#{exc}`if valid_commands?
216
224
  @completed = $CHILD_STATUS == 0
217
225
  return record if success? && completed?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ll-innobackup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: