Parent

Methods

Class/Module Index [+]

Quicksearch

Rails::Git

Public Class Methods

clone(repos, branch=nil) click to toggle source
# File 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
run(command) click to toggle source
# File lib/rails_generator/generators/applications/app/scm/git.rb, line 14
def self.run(command)
  system "git #{command}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.