Sha256: c697444a8768750e3716a3de8756cc427f97bcb135a3687a42f7312093681049

Contents?: true

Size: 373 Bytes

Versions: 11

Compression:

Stored size: 373 Bytes

Contents

module Serverspec
  module 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
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
serverspec-2.0.0.beta19 lib/serverspec/type/host.rb
serverspec-2.0.0.beta18 lib/serverspec/type/host.rb
serverspec-2.0.0.beta17 lib/serverspec/type/host.rb
serverspec-2.0.0.beta16 lib/serverspec/type/host.rb
serverspec-2.0.0.beta15 lib/serverspec/type/host.rb
serverspec-2.0.0.beta14 lib/serverspec/type/host.rb
serverspec-2.0.0.beta13 lib/serverspec/type/host.rb
serverspec-2.0.0.beta12 lib/serverspec/type/host.rb
serverspec-2.0.0.beta11 lib/serverspec/type/host.rb
serverspec-2.0.0.beta10 lib/serverspec/type/host.rb
serverspec-2.0.0.beta9 lib/serverspec/type/host.rb