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