class method self.clone

Ruby on Rails 2.3.18

Since v2.3.18 Last seen in v2.3.18

Signature

self.clone(repos, branch=nil)

No documentation comment.

Parameters

repos req
branch opt = 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

Type at least 2 characters to search.

↑↓ navigate · open · esc close