Sha256: fa23e5dc41a24fa9f5b9facabdfe6f5c1fef0c6df1f11cb5728156592a5ddb3e
Contents?: true
Size: 335 Bytes
Versions: 4
Compression:
Stored size: 335 Bytes
Contents
class Specinfra::Command::Openbsd::Base::Interface < Specinfra::Command::Base::Interface 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 end
Version data entries
4 entries across 4 versions & 1 rubygems