oliver 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oliver/main.rb +5 -4
- data/lib/oliver/version.rb +1 -1
- data/lib/oliver.rb +5 -0
- 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: 92adf062385b7856ee8adac19797d2803826e09a
|
4
|
+
data.tar.gz: daf01bb39ae43e31a4a9d7e4b9d2daaf92d7cf12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28989567dd03746d269aeb3076e142683b056305ff54d07f0752e2f192a3a18899d44ab54e97a6843476d16c0f9a5478f7d5492cbd5d752247d0229baefb4854
|
7
|
+
data.tar.gz: e9dc47a40dc5ff85361f44ec0038cd0ac39f8103b51783b82d6fa9a847769fdac660c711d4c741ae25f403ec2a192fbd2fac8c5e5c681c7fd89fa2833901b9c8
|
data/lib/oliver/main.rb
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
# Main oliver file
|
2
2
|
def run_main
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
body = File.read(Name::OLIVER.chomp)
|
4
|
+
final = YAML.load("---\n#{body}\n---")
|
5
|
+
final["repos"].each do |repo|
|
6
|
+
%x(git clone git://github.com/#{repo} --quiet)
|
7
|
+
end
|
7
8
|
end
|
8
9
|
end
|
data/lib/oliver/version.rb
CHANGED
data/lib/oliver.rb
CHANGED
@@ -13,6 +13,11 @@ require_relative "oliver/main"
|
|
13
13
|
# just disable it completely
|
14
14
|
Rainbow.enabled = false if ARGV[-1] == 'colour=off'
|
15
15
|
|
16
|
+
if ARGV[0].downcase == 'init'
|
17
|
+
puts "I'll implement this later"
|
18
|
+
Jib.exit
|
19
|
+
else
|
20
|
+
|
16
21
|
# if `Name::OLIVER` (string)
|
17
22
|
# exists as a file continue with oliver
|
18
23
|
if File.file? Name::OLIVER
|