Sha256: fee07b048ef6ac6bb78f5db96c257520c8cfb7df7d2c908e29a180b3a07b0e25
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
require "rsync/version" require "rsync/command" require "rsync/result" # The main interface to rsync module Rsync # Creates and runs an rsync {Command} and return the {Result} # @return {Result} # @yield {Result} def self.command(args, &block) output = Command.new(args).run exitcode = $? result = Result.new(output, exitcode) yield(result) if block_given? result end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rsync-0.0.2 | lib/rsync.rb |