Just an update. This got to really nagging me, and I wound up digging
into the rubygems code a little to see if there was a quick way to
patch the platform-specific gem selection. Turns out there is:
http://pastie.caboo.se/73171

Apply with:
patch /root/platform_gems.patch /usr/lib/ruby/site_ruby/1.8/rubygems/
remote_installer.rb

Probably not a great way to do it, but it'll hold us over until
rubygems itself has this ability. This hard-codes to ruby as the
platform since that's all we use anyway, but it'd be pretty trivial to
change the code to check & select instead

- crayz

On Jun 4, 10:03 am, crayz <[EMAIL PROTECTED]> wrote:
> Anyone know of a way to automate gem installation/deployment? I'd like
> to be able to add the installation of requiredgemsto a kickstart
> %post section, to get deployment down to:
> 1) kickstart new machine w/gems
> 2) cap deploy to it
> 3) no step 3
>
> Currently there's a step 1.5 of having to go manually install a bunch
> ofgems, because somegemsrequire you to specify the platform at an
> interactive prompt - I can't see any way to specify it via a command
> line argument
>
> A way to either kickstart the appropriategemsor have capistrano
> deploy them would be amazing. I read about gem_server, but this
> doesn't seem to help the platform selection issue


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deploying Rails" group.
To post to this group, send email to rubyonrails-deployment@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-deployment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to