Sha256: 6e3b3a781834ab2b85500bed8e6a85539dad2efe38fe6680b0cf312b9dad1c41
Contents?: true
Size: 489 Bytes
Versions: 29
Compression:
Stored size: 489 Bytes
Contents
class Specinfra::Command::Openbsd::Base::Interface < Specinfra::Command::Base::Interface class << self def get_speed_of(name) "ifconfig #{name} | grep 'media\:' | perl -pe 's|.*media\:.*\\((.*?)\\)|\\1|'" end def check_has_ipv4_address(interface, ip_address) "ifconfig #{interface} | grep -w inet | cut -d ' ' -f 2" end def check_has_ipv6_address(interface, ip_address) "ifconfig #{interface} | grep -w inet6 | cut -d ' ' -f 2" end end end
Version data entries
29 entries across 29 versions & 1 rubygems