diff options
author | elijah <elijah@riseup.net> | 2012-12-09 12:12:58 -0800 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2012-12-09 12:12:58 -0800 |
commit | d79ddaf3d03453f847f4625e096465c2dfec7786 (patch) | |
tree | cb1fc145a8dddfa890fef95e7397c485bc2d7f29 /Rakefile | |
parent | 03ca644829dfaaf0e219e439c03c6ce04ba93746 (diff) | |
download | leap_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-- | Rakefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |