On 12/24/2009 03:14 PM, Bryan Kearney wrote:
On 12/24/2009 07:34 AM, Jeroen van Meeuwen wrote:
> On 12/08/2009 02:38 AM, Mohammed Morsi wrote:
>> Hey Jeroen, thanks alot for your Ruby roundtable discussion at FUDCon. I
>> was looking around for various solutions to the Ruby version
>> compatibility problem for Fedora/Yum and recalled the 'alternatives'
>> utility which I believe might help out w/ this problem as well.
>>
>
> Hi Mohammed,
>
> please don't misunderstand me I was not ignoring you ;-) Sorry for my
> late response but I had been working on *exactly* what you describe here ;-)
I hate to be a naysayer without a better solution, but I have never felt
that the alternatives was a great model. I tend to use environment
variables and not alternatives. Would the java guys do it that way again
if they could?
I don't know of any alternatives - no pun intended.
If we were to do the work without alternatives, that's fine with me, but
wouldn't it end up like... messy?
All shebangs would have to be #!/usr/bin/env ruby, right?
I think with environment variables rather then alternatives, given that
ruby-1.9.1 would be the default stack, to execute facter with ruby-1.8.6
compares as follows:
ruby-1.8.6 /usr/bin/facter
env ruby=/usr/bin/ruby-1.8.6 /usr/bin/facter
but please you have more experience with the environment variables so
correct me if I'm wrong.
-- Jeroen