Sha256: 419f303ec9174eb06961b7f922d6f7406d037ecfe7449a973471fad2054fe4fd

Contents?: true

Size: 379 Bytes

Versions: 9

Compression:

Stored size: 379 Bytes

Contents

class Specinfra::Command::Solaris::V10::Host < Specinfra::Command::Solaris::Base::Host
  def check_is_reachable(host, port, proto, timeout)
    if port.nil?
      "ping -n #{escape(host)} #{escape(timeout)}"
    elsif proto == 'tcp'
      "echo 'quit' | mconnect -p #{escape(port)} #{escape(host)} > /dev/null 2>&1"
    else
      raise NotImplementedError.new
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
specinfra-2.0.0.beta15 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta14 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta13 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta12 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta11 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta10 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta9 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta8 lib/specinfra/command/solaris/v10/host.rb
specinfra-2.0.0.beta7 lib/specinfra/command/solaris/v10/host.rb