Method: Inspec::Resources::Host#resolvable?
- Defined in:
- lib/resources/host.rb
#resolvable?(type = nil) ⇒ Boolean
if we get the IP address, the host is resolvable
57 58 59 60 |
# File 'lib/resources/host.rb', line 57 def resolvable?(type = nil) warn "The `host` resource ignores #{type} parameters. Continue to resolve host." if !type.nil? resolve.nil? || resolve.empty? ? false : true end |