Sha256: 1c328089e61d53cee0a831d1a1f9f23e46b698746ee85c93b894ddfbd5ba6bc8
Contents?: true
Size: 480 Bytes
Versions: 5
Compression:
Stored size: 480 Bytes
Contents
module Serverspec module Type class Port < Base def listening?(protocol) if protocol protocol = protocol.to_s.downcase unless ["udp", "tcp", "tcp6", "udp6"].include?(protocol) raise ArgumentError.new("`be_listening` matcher doesn't support #{protocol}") end @runner.check_listening_with_protocol(@name, protocol) else @runner.check_listening(@name) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems