]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
make sure we actually use the path we are promissing
authorAzul <azul@riseup.net>
Wed, 12 Dec 2012 11:47:17 +0000 (12:47 +0100)
committerAzul <azul@riseup.net>
Wed, 12 Dec 2012 11:47:17 +0000 (12:47 +0100)
for me the users gem path 'gem install' detects differs from the one we pick. No idea why. So let's tell it to use the path we mentioned before.

Rakefile

index 9016ddaec6713da1d1b4c3a71c83fdb8d54139f7..d5970854a7d4f92936ffe0fc7c1e18ddcda22ba4 100644 (file)
--- a/Rakefile
+++ b/Rakefile
@@ -56,7 +56,7 @@ task 'install' do
       print "Do you want to continue installing to #{home_gem_path}? [y/N] "
       input = STDIN.readline
       if input =~ /[yY]/
-        run "gem install #{options} --user-install '#{$gem_path}'"
+        run "gem install #{$gem_path} #{options} --install-dir '#{home_gem_path}' "
       else
         puts "bailing out."
       end