load 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/load +5 -1
- data/lib/load.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 192792ecb5a2030897cee882c79fa59a1ec7ed64
|
4
|
+
data.tar.gz: 0eb4afce50bc4d3762215768f58ba0522e1d55f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eff96db32b7b1c1f7cbeb531a1c0c83e64ae3de81b53d1de4289027eba5944da43322579af22953c60908c6671829005fae3bc33ce635abfe23d68c7c95730b3
|
7
|
+
data.tar.gz: 35e498bc758bafc6e10bf9e0f4d2b36ef23454b149d4adf183ee878e79739a564a0a9f93bd379efab87fd25e66964fdb153267769016543d9a09a6eedf9e4315
|
data/bin/load
CHANGED
data/lib/load.rb
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
module Load
|
2
|
+
def self.help
|
3
|
+
puts "Usage: \n" +
|
4
|
+
"$ load christianbundy/load"
|
5
|
+
end
|
2
6
|
def self.load(source, target)
|
3
7
|
if source.index(':') == nil and source.index('@') == nil
|
4
8
|
repo = "git@github.com:#{source}.git"
|
5
9
|
else
|
6
10
|
repo = source;
|
7
11
|
end
|
8
|
-
|
9
|
-
|
12
|
+
system "git clone --recursive #{repo} #{target}"
|
13
|
+
end
|
10
14
|
end
|