helm/rake/lib/git.rb
2014-07-17 08:17:57 -04:00

10 lines
174 B
Ruby

include Rake::DSL
def git(url,dest)
sh "git clone #{url} #{dest}" unless Dir.exists?(dest)
end
def github(repo,dest)
git "https://github.com/#{repo}.git", dest
end