Method: CodeCache.repo

Defined in:
lib/code_cache.rb

.repo(url) ⇒ Object



14
15
16
17
18
19
20
# File 'lib/code_cache.rb', line 14

def self.repo(url)
  if self.identify(url) == :git
    Repo::Git.new(url)
  else
    Repo::SVN.new(url)
  end
end