2014-04-11 00:31:44 -07:00
|
|
|
include Rake::DSL
|
|
|
|
|
|
|
|
def git(url,dest)
|
2014-06-21 01:05:51 -07:00
|
|
|
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)
|
2014-06-21 01:13:56 -07:00
|
|
|
git "https://github.com/#{repo}.git", dest
|
2014-04-11 00:31:44 -07:00
|
|
|
end
|