Class: Rails::Git
- Defined in:
- lib/rails_generator/generators/applications/app/scm/git.rb
Class Method Summary collapse
Class Method Details
.clone(repos, branch = nil) ⇒ Object
5 6 7 8 9 10 11 12 |
# 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) ⇒ Object
14 15 16 |
# File 'lib/rails_generator/generators/applications/app/scm/git.rb', line 14 def self.run(command) system "git #{command}" end |