Sha256: 3c628518b8b04480ac9b3594c1a7d3456439a2a43a9baa75bc8e90c15cf85851
Contents?: true
Size: 915 Bytes
Versions: 3
Compression:
Stored size: 915 Bytes
Contents
require 'pullr/command_line' module Pullr module SCM module SubVersion include CommandLine # # 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. # def scm_pull(uri,dest=nil) if dest sh 'svn', 'checkout', uri, dest else sh 'svn', 'checkout', uri end end # # 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. # def scm_update(path,uri=nil) cd(path) { sh 'svn', 'update' } end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pullr-0.1.3 | lib/pullr/scm/sub_version.rb |
pullr-0.1.2 | lib/pullr/scm/sub_version.rb |
pullr-0.1.1 | lib/pullr/scm/sub_version.rb |