Sha256: 5464f77fdc63f3a4224d6b033d4434133ef2710729862e2a9a00d192fa3b5c3e
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
module RdiffSimple class RdiffBackup def initialize(logger = Logger.new(STDOUT), open3 = Open3) @logger = logger @open3 = open3 end def execute(*args) command_arguments = OptionsParser.parse(*args) out, err, result = @open3.capture3("rdiff-backup #{command_arguments}".strip) @logger.info(out) if out.length > 0 @logger.error(err) if err.length > 0 return result.exitstatus end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rdiff-simple-0.1.0 | lib/rdiff_simple/rdiff_backup.rb |