Project

interfacez

0.0
Low commit activity in last 3 years
No release in over a year
Simplified network interface API
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 3.0
~> 13.0
 Project Readme

Interfacez

Simplified network interfaces API

Installation

$ gem install interfacez

Usage

require 'interfacez'

Interfacez.default
# => "en0"

Interfacez.loopback
# => "lo0"

Interfacez.all do |interface|
  # do something with interface name
  puts interface
end

Interfacez.ipv4_address_of("en0")
# => "192.168.1.2"

License

The gem is available as open source under the terms of the MIT License.