Prerequisites

Ruby 1.8.0 or later. Ruby 1.8.2 or later preferred on Windows.

Synopsis

require 'sys/host' include Sys

p Host.hostname
p Host.ip_addr

Host.info{ |h|
  p h
}

Installation

Standard (non-gem) installation

rake test (optional) rake install

Gem Installation

rake test (optional) rake install_gem

Documentation

See the doc/host.txt file for more information.