Sha256: 4d371af74ccd248e14b135b645ba5b67602c892c680f91d44c1ffd51f81438e5

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

require 'repertoire/media/media'

module Repertoire
  class Rsync < Media

    uses_schemes 'rsync'

    #
    # Checks out the Rsync repository located at the specified _uri_ into
    # the specified _path_.
    #
    def self.checkout(uri,path)
      sh('rsync','-av',uri,path)
    end

    #
    # Updated the Rsync repository located at the specified _path_ with the
    # remote repository at the specified _uri_.
    #
    def self.update(path,uri)
      sh('rsync','-av','--delete-after',uri,path)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
repertoire-0.1.0 lib/repertoire/media/rsync.rb