oliver 1.8.6.4 → 1.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oliver/argument_files/install.rb +7 -4
- data/lib/oliver/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26cc85b0ba6b6331ec8e173ab2d756d4e353508f
|
4
|
+
data.tar.gz: d2e99cdf3d828711beb0d98fc17adfd7daf12af8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 238765d533ab004c4125258a7f92b0be216efa609302d56ad07566fa4f8891bd71671ba43a56abc08161fccd5d45894f2c3bec9b2c549566d4082dccc4a236c4
|
7
|
+
data.tar.gz: f6c0313fc54f21ca99f2ab6792331973bb39bd9323be0aac6c00c0f2210e6ac567fb26c0b4bf7fd9b3af12df10f05efd92a1a9c64a44e204e080a97538a316a7
|
@@ -1,4 +1,6 @@
|
|
1
1
|
require_relative '../file_manager'
|
2
|
+
require 'fileutils'
|
3
|
+
require 'git'
|
2
4
|
|
3
5
|
# Success, warning and error messages
|
4
6
|
# (Make these public, sometime)
|
@@ -38,8 +40,9 @@ FileManager::YAML['repos'].map do |username, repos|
|
|
38
40
|
if username.downcase == 'misc'
|
39
41
|
split = repo.split('/')
|
40
42
|
if !File.directory?(split[1])
|
41
|
-
|
42
|
-
|
43
|
+
repo_replaced = repo.gsub('/', '-')
|
44
|
+
cloned_repo = Git.clone("git://github.com/#{repo}", repo_replaced, :path => '.')
|
45
|
+
if File.directory?(repo_replaced)
|
43
46
|
puts "#{success} #{split[1]}/ was cloned."
|
44
47
|
else
|
45
48
|
puts "#{error} #{split[1]} was not cloned."
|
@@ -49,7 +52,7 @@ FileManager::YAML['repos'].map do |username, repos|
|
|
49
52
|
end
|
50
53
|
if !File.directory?(repo)
|
51
54
|
# Clone the repo if the directory doesn't already exist
|
52
|
-
|
55
|
+
cloned_repo = Git.clone("git://github.com/#{username}/#{repo}", repo, :path => '.')
|
53
56
|
if File.directory?(repo)
|
54
57
|
# If the directory exists after the repo
|
55
58
|
# has been cloned, give a success message
|
@@ -77,6 +80,6 @@ current_repos.each do |directory|
|
|
77
80
|
unless listed_repos.to_s.include?(directory) &&
|
78
81
|
File.directory?(directory)
|
79
82
|
print "#{warning} Would you like to delete #{directory}/? (y/n): "
|
80
|
-
|
83
|
+
FileUtils.rm_rf(directory) if STDIN.gets.chomp.downcase == 'y'
|
81
84
|
end
|
82
85
|
end
|
data/lib/oliver/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oliver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|