Sha256: be1e05cde276925b3f116a2769f27f313704004389a593139fd52dd069ea6d50

Contents?: true

Size: 337 Bytes

Versions: 37

Compression:

Stored size: 337 Bytes

Contents

module Serverspec::Type
  class Host < Base
    def resolvable?(type)
      @runner.check_host_is_resolvable(@name, type)
    end

    def reachable?(port, proto, timeout)
      @runner.check_host_is_reachable(@name, port, proto, timeout)
    end

    def ipaddress
      @runner.get_host_ipaddress(@name).stdout.strip
    end
  end
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
serverspec-2.21.1 lib/serverspec/type/host.rb
serverspec-2.21.0 lib/serverspec/type/host.rb
serverspec-2.20.0 lib/serverspec/type/host.rb
serverspec-2.19.0 lib/serverspec/type/host.rb
serverspec-2.18.0 lib/serverspec/type/host.rb
serverspec-2.17.1 lib/serverspec/type/host.rb
serverspec-2.17.0 lib/serverspec/type/host.rb
serverspec-2.16.0 lib/serverspec/type/host.rb
serverspec-2.15.0 lib/serverspec/type/host.rb
serverspec-2.14.1 lib/serverspec/type/host.rb
serverspec-2.14.0 lib/serverspec/type/host.rb
serverspec-2.13.0 lib/serverspec/type/host.rb
serverspec-2.12.0 lib/serverspec/type/host.rb
serverspec-2.11.0 lib/serverspec/type/host.rb
serverspec-2.10.2 lib/serverspec/type/host.rb
serverspec-2.10.1 lib/serverspec/type/host.rb
serverspec-2.10.0 lib/serverspec/type/host.rb
serverspec-2.9.1 lib/serverspec/type/host.rb
serverspec-2.9.0 lib/serverspec/type/host.rb
serverspec-2.8.2 lib/serverspec/type/host.rb