Sha256: 41197ccd35412d5a5cde4669324ed7a5afee22634995782a5193337a5caaaa44
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
require "rsync/version" require "rsync/command" require "rsync/result" require 'rsync/configure' # The main interface to rsync module Rsync extend Configure # Creates and runs an rsync {Command} and return the {Result} # @param source {String} # @param destination {String} # @param args {Array} # @return {Result} # @yield {Result} def self.run(source, destination, args = [], &block) destination = "#{self.host}:#{destination}" if self.host result = Command.run(source, destination, args) yield(result) if block_given? result end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rsync-1.0.9 | lib/rsync.rb |
rsync-1.0.8 | lib/rsync.rb |