module Pullr::SCM::SubVersion

Public Instance Methods

scm_pull(uri,dest=nil) click to toggle source

Pulls down a copy of a SubVersion source repository.

@param [Addressable::URI] uri

The URI of the SubVersion repository.

@param [String] dest

Optional destination to pull the repository down into.
# File lib/pullr/scm/sub_version.rb, line 17
def scm_pull(uri,dest=nil)
  if dest
    sh 'svn', 'checkout', uri, dest
  else
    sh 'svn', 'checkout', uri
  end
end
scm_update(path,uri=nil) click to toggle source

Updates a local SubVersion repository.

@param [String] path

Path to the local repository to update.

@param [Addressable::URI] uri

Optional URI of the remote SubVersion repository to update from.
# File lib/pullr/scm/sub_version.rb, line 34
def scm_update(path,uri=nil)
  cd(path) { sh 'svn', 'update' }
end