Sha256: bc7209cbfa635cf209727e20997f658920b9992ff2d9740f268a1205b99e87ef
Contents?: true
Size: 480 Bytes
Versions: 52
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 backend.check_listening_with_protocol(@name, protocol) else backend.check_listening(@name) end end end end end
Version data entries
52 entries across 52 versions & 1 rubygems