Method: Inspec::Resources::Host#resolvable?
- Defined in:
- lib/resources/host.rb
#resolvable?(type = nil) ⇒ Boolean
if we get the IP adress, the host is resolvable
53 54 55 56 |
# File 'lib/resources/host.rb', line 53 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 |