]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
remove rdoc and ri from 'rake install', fix bug with local install, make install...
authorelijah <elijah@riseup.net>
Sun, 9 Dec 2012 20:12:58 +0000 (12:12 -0800)
committerelijah <elijah@riseup.net>
Sun, 9 Dec 2012 20:12:58 +0000 (12:12 -0800)
Rakefile

index bf1ed63eab764dd80116fadc3f636e16d345ad58..9016ddaec6713da1d1b4c3a71c83fdb8d54139f7 100644 (file)
--- 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