Method: AppDeploy.clone
- Defined in:
- lib/app-deploy/utils.rb
.clone(opts) ⇒ Object
about git
78 79 80 81 82 83 84 85 86 87 |
# File 'lib/app-deploy/utils.rb', line 78 def clone opts user, proj, path = opts[:github_user], opts[:github_project], opts[:git_path] if File.exist?(path) puts "Skip #{proj} because #{path} exists" else sh "git clone git://github.com/#{user}/#{proj}.git #{path}" sh "git --git-dir #{path}/.git gc" end end |