aboutsummaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2012-12-09 12:12:58 -0800
committerelijah <elijah@riseup.net>2012-12-09 12:12:58 -0800
commitd79ddaf3d03453f847f4625e096465c2dfec7786 (patch)
treecb1fc145a8dddfa890fef95e7397c485bc2d7f29 /Rakefile
parent03ca644829dfaaf0e219e439c03c6ce04ba93746 (diff)
downloadleap_cli-d79ddaf3d03453f847f4625e096465c2dfec7786.tar.gz
leap_cli-d79ddaf3d03453f847f4625e096465c2dfec7786.tar.bz2
remove rdoc and ri from 'rake install', fix bug with local install, make install verbose.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Rakefile b/Rakefile
index bf1ed63..9016dda 100644
--- a/Rakefile
+++ b/Rakefile
@@ -47,15 +47,16 @@ task 'install' do
if !File.exists?($gem_path)
puts("Could not file #{$gem_path}. Try running 'rake build'")
else
+ options = '--verbose --conservative --no-rdoc --no-ri'
if ENV["USER"] == "root"
- run "gem install '#{$gem_path}'"
+ run "gem install #{options} '#{$gem_path}'"
else
home_gem_path = Gem.path.grep(/home/).first
puts "You are installing as an unprivileged user, which will result in the installation being placed in '#{home_gem_path}'."
print "Do you want to continue installing to #{home_gem_path}? [y/N] "
input = STDIN.readline
if input =~ /[yY]/
- puts "gem install '#{$gem_path}' --user-install"
+ run "gem install #{options} --user-install '#{$gem_path}'"
else
puts "bailing out."
end