Sha256: bdb719741f846c876d773166220f43638169d6173d6fc63bfeb4a897845ed05f
Contents?: true
Size: 438 Bytes
Versions: 5
Compression:
Stored size: 438 Bytes
Contents
module Downlow class Git < Fetcher handles(/^git\:\/\//) def fetch self.destination = destination.dirname + destination.stem git_clone rm_dot_git unless options[:keep_git] @local_path = destination end def git_clone system "`which git` clone #{url} #{destination.expand_path}" end def rm_dot_git FileUtils.rm_rf(destination + '.git') end end end
Version data entries
5 entries across 5 versions & 1 rubygems