Sha256: 5e3a9d16bdb65dfc5faaa1c11807381e161561271c5744fc82978cbf3af47b37

Contents?: true

Size: 365 Bytes

Versions: 113

Compression:

Stored size: 365 Bytes

Contents

class Specinfra::Command::Darwin::Base::Host < Specinfra::Command::Base::Host
  class << self
    def check_is_reachable(host, port, proto, timeout)
      if port.nil?
        "ping -t #{escape(timeout)} -c 2 -n #{escape(host)}"
      else
        "nc -vvvvz#{escape(proto[0].chr)} #{escape(host)} #{escape(port)} -w #{escape(timeout)}"
      end
    end
  end
end

Version data entries

113 entries across 113 versions & 2 rubygems

Version Path
specinfra-2.15.0 lib/specinfra/command/darwin/base/host.rb
specinfra-2.14.4 lib/specinfra/command/darwin/base/host.rb
specinfra-2.14.3 lib/specinfra/command/darwin/base/host.rb
specinfra-2.14.2 lib/specinfra/command/darwin/base/host.rb
specinfra-2.14.1 lib/specinfra/command/darwin/base/host.rb
specinfra-2.14.0 lib/specinfra/command/darwin/base/host.rb
specinfra-2.13.1 lib/specinfra/command/darwin/base/host.rb
specinfra-2.13.0 lib/specinfra/command/darwin/base/host.rb
specinfra-2.12.7 lib/specinfra/command/darwin/base/host.rb
specinfra-2.12.6 lib/specinfra/command/darwin/base/host.rb
specinfra-2.12.5 lib/specinfra/command/darwin/base/host.rb
specinfra-2.12.4 lib/specinfra/command/darwin/base/host.rb
specinfra-2.12.3 lib/specinfra/command/darwin/base/host.rb