Sha256: 80b6ac03814e3f11d1ba4a3c2b9c66e3fd56a8d469c6956507c7d845bd6ef5e9

Contents?: true

Size: 507 Bytes

Versions: 48

Compression:

Stored size: 507 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
    def ipv4_address
      @runner.get_host_ipv4_address(@name).stdout.strip
    end
    def ipv6_address
      @runner.get_host_ipv6_address(@name).stdout.strip
    end
  end
end

Version data entries

48 entries across 48 versions & 3 rubygems

Version Path
serverspec-2.42.3 lib/serverspec/type/host.rb
serverspec-2.42.2 lib/serverspec/type/host.rb
serverspec-2.42.1 lib/serverspec/type/host.rb
serverspec-cem-acpt-2.42.0 lib/serverspec/type/host.rb
serverspec-2.42.0 lib/serverspec/type/host.rb
serverspec-2.41.8 lib/serverspec/type/host.rb
serverspec-2.41.7 lib/serverspec/type/host.rb
serverspec-2.41.6 lib/serverspec/type/host.rb
serverspec-2.41.5 lib/serverspec/type/host.rb
serverspec-2.41.4 lib/serverspec/type/host.rb
serverspec-ruby19-2.24.3 lib/serverspec/type/host.rb
serverspec-2.41.3 lib/serverspec/type/host.rb
serverspec-2.41.2 lib/serverspec/type/host.rb
serverspec-2.41.1 lib/serverspec/type/host.rb
serverspec-2.41.0 lib/serverspec/type/host.rb
serverspec-2.40.0 lib/serverspec/type/host.rb
serverspec-2.39.2 lib/serverspec/type/host.rb
serverspec-2.39.1 lib/serverspec/type/host.rb
serverspec-2.39.0 lib/serverspec/type/host.rb
serverspec-2.38.1 lib/serverspec/type/host.rb