Sha256: edfa11f300aa7c01bdd5fc606f6652789cc238745a26064400b75e56e1fe6c17
Contents?: true
Size: 370 Bytes
Versions: 29
Compression:
Stored size: 370 Bytes
Contents
module Serverspec module Type class Interface < Base def speed ret = backend.run_command(commands.get_interface_speed_of(@name)) val = ret.stdout.strip val = val.to_i if val.match(/^\d+$/) val end def has_ipv4_address?(ip_address) backend.check_ipv4_address(@name, ip_address) end end end end
Version data entries
29 entries across 29 versions & 1 rubygems