Hardware detection

hi all,
does the stock ruby (1.8) library have any classes that i can use to
detect the current systems’ cpu type, and number of cpu’s etc?
i’m hoping for something portable across linux, mac, bsd etc, but cant
find much.

thanks.

On Apr 14, 3:12 pm, Paul F. [email protected] wrote:

hi all,
does the stock ruby (1.8) library have any classes that i can use to
detect the current systems’ cpu type, and number of cpu’s etc?
i’m hoping for something portable across linux, mac, bsd etc, but cant
find much.

Nothing stock, but there’s sys-cpu.

gem install sys-cpu

Regards,

Dan