Sha256: 2bad4467b05ca325c310ea6c923cf2a7ecfe75dda64b68ddea3470b7198bdd41

Contents?: true

Size: 561 Bytes

Versions: 2

Compression:

Stored size: 561 Bytes

Contents

require 'repertoire/media/type'

module Repertoire
  module Media
    class SVN

      include Type

      known_as :svn

      uses_schemes 'svn', 'svn+ssh'
      uses_directory '.svn'

      #
      # Checks out the SVN repository located at the specified _uri_ into the
      # specified _path_.
      #
      def self.checkout(uri,path)
        sh('svn','co',uri,path)
      end

      #
      # Updated the SVN repository located at the specified _path_.
      #
      def self.update(path,uri=nil)
        sh('svn','up',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/svn.rb
repertoire-0.1.1 lib/repertoire/media/types/svn.rb