Sha256: b11feeac61db66d85a86dc63bf6560ee55e865777eff97270673f1f74cd02169

Contents?: true

Size: 605 Bytes

Versions: 4

Compression:

Stored size: 605 Bytes

Contents

require 'repertoire/media/type'

module Repertoire
  module Media
    class Rsync < 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

4 entries across 4 versions & 1 rubygems

Version Path
repertoire-0.2.3 lib/repertoire/media/types/rsync.rb
repertoire-0.2.0 lib/repertoire/media/types/rsync.rb
repertoire-0.2.1 lib/repertoire/media/types/rsync.rb
repertoire-0.2.2 lib/repertoire/media/types/rsync.rb