Project

sys-host

0.0
Repository is archived
No release in over 3 years
Low commit activity in last 3 years
The sys-host library provides information about the current machine that your program is running on. Specifically, it returns hostname, IP address information, aliases and so on.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 2.0.7
 Project Readme

DEPRECATION WARNING

This library is deprecated and has not been updated for many years. Please do not use this library. It was mainly a learning exercise for C extensions from my earliest days of Ruby when I was just learning how to write them. I'm fairly certain anything this library does the socket library in stdlib can already do.

This library will receive no further updates and the repository has been archived.

Description

An interface for getting host information.

Installation

gem install sys-host

Synopsis

require 'sys/host'
include Sys

p Host.hostname
p Host.ip_addr

Host.info{ |h|
  p h
}

Documentation

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