From: Jim Weirich Date: 2006-04-17T07:45:39+09:00 Subject: Re: non-interactive gem install impossible? Stephen Waits wrote: > As you know, "gem install mongrel -y" presents this: > > Select which gem to install for your platform (i686-linux) > 1. mongrel 0.3.12.4 (ruby) > 2. mongrel 0.3.12.4 (mswin32) > 3. mongrel 0.3.12.3 (mswin32) > 4. mongrel 0.3.12.3 (ruby) > ... > > > > Is there any way to reliably do this non-interactively? > > echo "1" | gem install mongrel -y > > does not work, because the proper choice may be 1 or 2 for (ruby) - it's > inconsistent between versions and various gems. > > Please don't say, "use expect" :) Future versions of gems (probably in the 0.10.x series) will be smarter about selecting the gem to install. It will figure out the "best" platform (but allow you to specify something other than the default if you desire). -- -- Jim Weirich -- Posted via http://www.ruby-forum.com/.