class Serverspec::Type::Host
Public Instance Methods
ipaddress()
click to toggle source
# File lib/serverspec/type/host.rb, line 11 def ipaddress @runner.get_host_ipaddress(@name).stdout.strip end
ipv4_address()
click to toggle source
# File lib/serverspec/type/host.rb, line 14 def ipv4_address @runner.get_host_ipv4_address(@name).stdout.strip end
ipv6_address()
click to toggle source
# File lib/serverspec/type/host.rb, line 17 def ipv6_address @runner.get_host_ipv6_address(@name).stdout.strip end
reachable?(port, proto, timeout)
click to toggle source
# File lib/serverspec/type/host.rb, line 7 def reachable?(port, proto, timeout) @runner.check_host_is_reachable(@name, port, proto, timeout) end
resolvable?(type)
click to toggle source
# File lib/serverspec/type/host.rb, line 3 def resolvable?(type) @runner.check_host_is_resolvable(@name, type) end