class method
self.clone
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
self.clone(repos, branch=nil)
No documentation comment.
Parameters
-
reposreq -
branchopt = nil
Source
# File railties/lib/rails_generator/generators/applications/app/scm/git.rb, line 5
def self.clone(repos, branch=nil)
system "git clone #{repos}"
if branch
system "cd #{repos.split('/').last}/"
system "git checkout #{branch}"
end
end
Defined in railties/lib/rails_generator/generators/applications/app/scm/git.rb line 5
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Git