Sha256: 00d4a196480bb7c568491dafcb3e30b9b6b2c43761bfc913aa9b3b15235f53dc
Contents?: true
Size: 370 Bytes
Versions: 6
Compression:
Stored size: 370 Bytes
Contents
module Serverspec module Type class Interface < Base def speed ret = @runner.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) @runner.check_ipv4_address(@name, ip_address) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems