load 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/load.rb +7 -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: 7e5757efda12799cd68d3e974fdec0e3af313089
|
4
|
+
data.tar.gz: a587eabfb41d8770b8de30a20402a48a610d2a30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46c5b2ffca49712aab2398a4dcc64023db1fea815e6e76b2704eec73a29883b816dcb4cfb889733706e26393100fa44a982393fdfc73bf16210e35ecf7980a10
|
7
|
+
data.tar.gz: 45c50fdcba2cf6eac1835c55f9fa652547c0c694add825e3ddd42d9faee72f48ca02b6aabf042d8d4533bb1e16f284020e8c180be36a5bc371ed6ada70e9ad1f
|
data/lib/load.rb
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
module Load
|
2
|
-
def self.load(
|
3
|
-
|
2
|
+
def self.load(source, target)
|
3
|
+
if source.index(':') == nil and source.index('@') == nil
|
4
|
+
repo = "git@github.com:#{source}.git"
|
5
|
+
else
|
6
|
+
repo = source;
|
7
|
+
end
|
8
|
+
system "git clone --recursive #{repo} #{target}"
|
4
9
|
end
|
5
10
|
end
|