System
System is a pure ruby interface to gather current systems information.
About
System is a cross-platform and cross-implementation interface to gather system information from the current host.
System offers a simple to use interface to gather an array of information including; OS, CPU, Filesystem, etc.
Install
Bundler: gem 'system'
RubyGems: gem install system
Usage
require 'system'
System::Ruby.java?
System::Ruby.jruby?
System::OS.name
System::CPU.count
TODO
List
-
Separate OS and Implementation specific logic into loadable mixins
i.e. require 'system/cpu'
would require 'system/cpu/java'
if running JRuby.
-
SPECS! Decide how to stub out system calls and replace with fixtures.
System::CPU
System::CPU[0].id
System::CPU[0].vendor
System::CPU[0].family
System::CPU[0].model
System::CPU[0].name
System::CPU[0].speed
System::CPU[0].cache
System::CPU[0].multi_core?
System::CPU::Core
System::CPU[0].cores[0]
System::CPU[0].cores[0].id
System::CPU[0].cores[0].flags
System::CPU[0].cores[0].siblings
System::CPU[0].cores[0].siblings
Build Status

Contributing
- Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
- Fork the project
- Start or switch to a testing/unstable/feature/bugfix branch
- Commit and push until you are happy with your contribution
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
- Please try not to mess with the Rakefile, VERSION or gemspec.
Copyright
Copyright © 2009-2012 Roja Buck and Ryan Scott Lewis.
The MIT License (MIT) - See LICENSE for further details.