Skip to content
This repository

A Ruby interface for getting operating system information.

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 CHANGES Updated changes file. May 01, 2013
Octocat-spinner-32 MANIFEST
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 sys-uname.gemspec
README
= Description
  A Ruby interface for getting operating system information. The name comes
  from the Unix 'uname' command, but this library works on MS Windows as well.

= Prerequisites
  ffi 1.0 or later

= Installation
  gem install sys-uname

  # If that doesn't work and you're on Windows try this:
  gem install sys-uname --platform universal-mingw32
   
= Synopsis
  require 'sys/uname'
  include Sys
   
  p Uname.uname
   
= Solaris Notes
  Users on SunOS get several extra methods: architecture, platform,
  hw_serial, hw_provider, srpc_domain, isa_list, and dhcp_cache.

= BSD flavors, including OS X
  Users on BSD platforms get the extra Uname.model method.

= HP-UX Notes
  HP-UX users get the extra Uname.id_number method. This is actually a
  String, not a Fixnum, because that's how it's defined in the utsname
  struct.

= MS Windows Notes
  The C version for Windows has been completely scrapped in favor of an OLE
  plus WMI approach.  It is pure Ruby.  Please see the MSDN documentation for
  the Win32_OperatingSystem class for a complete list of what each of the
  UnameStruct members mean.

= Documentation
  For more details, see the 'uname.txt' file under the 'doc' directory. 
Something went wrong with that request. Please try again.