Before I write my own capistrano task I was wondering how others sync
gems from one computer to another? I want to be able to run a ruby
program on multiple computers but not get bogged down in hand parsing
the output from gem list
on both computers to make sure it can run
in both places. Thanks for any hints.
On 10/2/07, ebeard [email protected] wrote:
Before I write my own capistrano task I was wondering how others sync
gems from one computer to another? I want to be able to run a ruby
program on multiple computers but not get bogged down in hand parsing
the output fromgem list
on both computers to make sure it can run
in both places. Thanks for any hints.
I run
rsync -av --delete source:/usr/lib/ruby/gems/1.8/cache/ target:
/usr/lib/ruby/gems/1.8/cache
and then run the attached script. You won’t be able to use it ‘as is’
(remove or replace references to mail_exception, MailSender and the
like, but you’ll get the idea.
It let’s me update install and uninstall gems automatically.
The only problem that I see are gems that need development packages
that may not be installed on the target machine. I might need to
create a ‘binary gem’ in those cases.
Cheers
Han H.