helm/rake/lib/git.rb

10 lines
174 B
Ruby
Raw Normal View History

2014-04-11 00:31:44 -07:00
include Rake::DSL
def git(url,dest)
2014-07-17 05:17:57 -07:00
sh "git clone #{url} #{dest}" unless Dir.exists?(dest)
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