Class | AutomateIt::AddressManager::BSD |
In: |
lib/automateit/address_manager/bsd.rb
|
Parent: | AutomateIt::AddressManager::BaseDriver |
An AddressManager driver for operating systems using a BSD-like ifconfig. Driver provides querying addresses and interfaces.
See AddressManager#addresses
# File lib/automateit/address_manager/bsd.rb, line 24 def addresses() _raise_unless_available return `ifconfig -a`.scan(/\s+inet\s+([^\s]+)\s+/).flatten end