helm/rake/lib/git.rb
2014-06-21 04:05:51 -04:00

12 lines
211 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 "git@github.com:#{repo}.git", dest
end