helm/rake/lib/git.rb

12 lines
215 B
Ruby
Raw Normal View History

2014-04-11 00:31:44 -07:00
include Rake::DSL
def git(url,dest)
if not Dir.exists?(dest)
sh "git clone #{url} #{dest}" unless Dir.exists?(dest)
end
2014-04-11 00:31:44 -07:00
end
def github(repo,dest)
git "https://github.com/#{repo}.git", dest
2014-04-11 00:31:44 -07:00
end