[Mongrel] Gem install from script

Graham Miller gmiller at marketcetera.com
Thu Feb 15 18:44:51 EST 2007

Thanks, Wayne, but you're right, that seems a little brittle.  Is there any
other way to do this?  I guess one question is that if it knows that I'm on
an "i486-linux" platform, why is it giving me the "mswin32" option in the
first place?


Date: Wed, 14 Feb 2007 20:27:16 -0500
From: "Wayne E. Seguin" <wayneeseguin at gmail.com>
Subject: Re: [Mongrel] Gem install from script
To: mongrel-users at rubyforge.org
Message-ID: <2203438B-685E-4841-B564-FCA20A5DB025 at gmail.com>
Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed

One possible method is:

echo 1 | gem install mongrel

The downside to this is if it's not always the first one (eg if ruby/
win32 can get switched at each next release)


On Feb 14, 2007, at 19:16 , Graham Miller wrote:

> Hello all,
> Apologies if this is not the right place for this question, but I
> thought I'd start here.  We're trying to install the latest Mongrel
> from inside a script.  Using 'gem install -v 1.0.1 mongrel' causes
> a prompt to come up asking whether to install the "ruby" or
> "mswin32" variant.
> Select which gem to install for your platform (i486-linux)
>  1. mongrel 1.0.1 (ruby)
>  2. mongrel 1.0.1 (mswin32)
>  3. Cancel installation
> >
> If I don't want to have to write an expect script or something like
> that, is there any way to specify on the command line that I want
> the "ruby" variant so that I don't get this prompt?
> Thanks in advance for any help.
> graham
> --
> Marketcetera Trading Platform
> download.run.trade.
> www.marketcetera.org
> _______________________________________________
> Mongrel-users mailing list
> Mongrel-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/mongrel-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/mongrel-users/attachments/20070215/fd716ac0/attachment.html 

More information about the Mongrel-users mailing list