helm/rake/lib/git.rb

10 lines
171 B
Ruby
Raw Normal View History

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