Class: Serverspec::Type::Host

Inherits:
Base
  • Object
show all
Defined in:
lib/serverspec/type/host.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s

Constructor Details

This class inherits a constructor from Serverspec::Type::Base

Instance Method Details

#reachable?(port, proto, timeout) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/serverspec/type/host.rb', line 8

def reachable?(port, proto, timeout)
  backend.check_reachable(@name, port, proto, timeout)
end

#resolvable?(type) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/serverspec/type/host.rb', line 4

def resolvable?(type)
  backend.check_resolvable(@name, type)
end