Sha256: e029aae02620cb7e7f09f6ac8f0c3fd5f47b54736ccefdfcff583a67c2cd6ef7

Contents?: true

Size: 465 Bytes

Versions: 5

Compression:

Stored size: 465 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}
  # @param source {String}
  # @param destination {String}
  # @param args {Array}
  # @return {Result}
  # @yield {Result}
  def self.run(source, destination, args = [], &block)
    result = Command.run(source, destination, args)
    yield(result) if block_given?
    result
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rsync-1.0.7 lib/rsync.rb
rsync-0.0.6 lib/rsync.rb
rsync-0.0.5 lib/rsync.rb
rsync-0.0.4 lib/rsync.rb
rsync-0.0.3 lib/rsync.rb