lib/rsync.rb in rsync-1.0.7 vs lib/rsync.rb in rsync-1.0.8

- old
+ new

@@ -1,17 +1,20 @@ 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