Class Rethtool::LinkStatus
In: lib/rethtool/link_status.rb
Parent: Object

Retrieve the current link status of an interface.

Usage is very simple:

  LinkStatus.new("eth0").up?

or

  LinkStatus.new("eth0").down?

Methods

down?   new   up?  

Public Class methods

Public Instance methods

[Validate]