class RdiffBackupWrapper::Volume
Attributes
config[R]
Public Class Methods
create(config)
click to toggle source
# File lib/rdiff_backup_wrapper/volume.rb, line 5 def self.create(config) if config['type'] == 'luks-loop' LuksLoopVolume.new config else raise "Unknown volume type '#{config['type']}" end end
new(config)
click to toggle source
# File lib/rdiff_backup_wrapper/volume.rb, line 15 def initialize(config) @config = config end
Public Instance Methods
check_error(o, e, t)
click to toggle source
# File lib/rdiff_backup_wrapper/volume.rb, line 19 def check_error(o, e, t) return if t.value.exitstatus == 0 STDERR.puts e.read STDERR.puts o.read STDERR.puts t raise "error" end