Sha256: f998b85c1916b0d17e17ddd3c36ae1a3a94f9fdcf1c8c4ca19576465d16afaf6
Contents?: true
Size: 547 Bytes
Versions: 7
Compression:
Stored size: 547 Bytes
Contents
module BrickAndMortar module Svn def self.checkout_repo(url, name = nil, options = {}) unless name split_url = url.split '/' name = if split_url.last == 'trunk' split_url.last else split_url[-2] end end # @todo This doesn't set the working directory properly for svn, but it's needed to handle the case where the user needs to interact with svn (for password, for instance) # IO.popen "svn co #{url} #{name}" system "svn co #{url} #{name}" end end end
Version data entries
7 entries across 7 versions & 1 rubygems