helm/rake/lib/git.rb

12 lines
215 B
Ruby

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