On Sun, Apr 6, 2008 at 12:37 AM, Jos Backus <[EMAIL PROTECTED]> wrote: > Understood. However, I also need the remote case to work for Puppet as it has > the ability to install the `latest' gem, so I need to be able to retrieve the > names and versions of remote gems. Pointers appreciated.
Invoke GemRunner with the appropriate ['--list','--remote','etc...'] options. For examples, look at GemInstaller: http://geminstaller.rubyforge.org/svn/trunk/lib/geminstaller/gem_list_checker.rb ...which calls: http://geminstaller.rubyforge.org/svn/trunk/lib/geminstaller/gem_command_manager.rb (see GemCommandManager#list_remote_gem) Could probably be improved, I have to do manual parsing of results. An option to return a data structure would be better. -- Chad _______________________________________________ Rubygems-developers mailing list [email protected] http://rubyforge.org/mailman/listinfo/rubygems-developers
