Module: Load
- Defined in:
- lib/load.rb
Class Method Summary collapse
Class Method Details
.help ⇒ Object
2 3 4 |
# File 'lib/load.rb', line 2 def self.help puts "Usage: load source/repo [ target ]" end |
.load(source, target) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/load.rb', line 5 def self.load(source, target) if source.index(':') == nil and source.index('@') == nil repo = "[email protected]:#{source}.git" else repo = source; end system "git clone --recursive #{repo} #{target}" end |