Module: BrickAndMortar::Git

Defined in:
lib/brick_and_mortar/git.rb

Class Method Summary collapse

Class Method Details

.clone_repo(url, name = nil, options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/brick_and_mortar/git.rb', line 5

def self.clone_repo(url, name = nil, options = {})
  unless name
    name = File.basename(url, File.extname(url))
  end
  ::Git.clone(url, name, options)
end