oliver 1.4.1 → 1.4.2
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 +3 -2
- data/lib/oliver/version.rb +1 -1
- 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: 7ef0c788dae15608333f6c4b34629c6bc4467c37
|
4
|
+
data.tar.gz: 5d546af001fbd1245e5859326bdd367fce5fd62b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0c3e1eb2b67eb67164279935432273c4bc193f5e3fa7f699e29b67c470b46579c0faee98cb3cbd70ee4b06a94cf631c6fad680bfa70868b8dff40fa36b8e745
|
7
|
+
data.tar.gz: 5859887cf427ae7147f888f7b5367719a9f53e1a71586dfe10a795a0a4d60042821af7f5451d16132c167a1ca720afbcf7726a42ba84e042b7ecf602738a5a8a
|
data/lib/oliver/main.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
def run_main
|
3
3
|
|
4
4
|
# Back up your files, man
|
5
|
-
if !
|
5
|
+
if !File.directory?('.backup')
|
6
6
|
Dir.mkdir '.backup'
|
7
7
|
end
|
8
8
|
|
@@ -16,7 +16,8 @@ def run_main
|
|
16
16
|
username = splitted[0]
|
17
17
|
repo = splitted[1]
|
18
18
|
|
19
|
-
if
|
19
|
+
# Clone the repo if it doesn't already exist
|
20
|
+
if !File.directory?(repo)
|
20
21
|
%x(git clone git://github.com/#{url} --quiet)
|
21
22
|
else
|
22
23
|
puts "#{Rainbow(repo).red}/ already exists."
|
data/lib/oliver/version.rb
CHANGED