Sha256: ae7b05a3b1858028bf63a7e001f8a330808b887adb0226b1e98fe9012672728c
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
module Rsync # An rsync command to be run class Command def initialize(args) @args = args.join(" ") end # Runs the rsync job and returns the results # # @return {Result} def run run_command("rsync --itemize-changes #{@args}") end private def run_command(cmd, &block) if block_given? IO.popen("#{cmd} 2>&1", &block) else `#{cmd} 2>&1` end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rsync-0.0.2 | lib/rsync/command.rb |