Sha256: 4aa7b84815eda2411981970f7d5ce3b6571fee3a8ea02810ab7147edd5403aa5

Contents?: true

Size: 360 Bytes

Versions: 23

Compression:

Stored size: 360 Bytes

Contents

module Serverspec
  module Type
    class Host < Base
      def resolvable?(type)
        backend.check_resolvable(@name, type)
      end

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

      def ipaddress
        backend.get_ipaddress_of_host(@name).stdout.strip
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
serverspec-1.16.0 lib/serverspec/type/host.rb
serverspec-1.15.0 lib/serverspec/type/host.rb
serverspec-1.14.0 lib/serverspec/type/host.rb
serverspec-1.13.0 lib/serverspec/type/host.rb
serverspec-1.12.0 lib/serverspec/type/host.rb
serverspec-1.11.0 lib/serverspec/type/host.rb
serverspec-1.10.0 lib/serverspec/type/host.rb
serverspec-1.9.1 lib/serverspec/type/host.rb
serverspec-1.9.0 lib/serverspec/type/host.rb
serverspec-1.8.0 lib/serverspec/type/host.rb
serverspec-1.7.1 lib/serverspec/type/host.rb
serverspec-1.7.0 lib/serverspec/type/host.rb
serverspec-1.6.0 lib/serverspec/type/host.rb
serverspec-1.5.0 lib/serverspec/type/host.rb
serverspec-2.0.0.beta2 lib/serverspec/type/host.rb
serverspec-1.4.2 lib/serverspec/type/host.rb
serverspec-2.0.0.beta1 lib/serverspec/type/host.rb
serverspec-1.4.1 lib/serverspec/type/host.rb
serverspec-1.4.0 lib/serverspec/type/host.rb
serverspec-1.3.0 lib/serverspec/type/host.rb