Sha256: efe46f9b254d49291b4cf252ebc9cc95c4208833f39795be85e88314656f2b18

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

require 'repertoire/media/type'

module Repertoire
  module Media
    class Rsync

      include Type

      known_as :rsync

      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
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
repertoire-0.1.2 lib/repertoire/media/types/rsync.rb
repertoire-0.1.1 lib/repertoire/media/types/rsync.rb