:nocov: These are for sorting. No need to test for coverage.
# File lib/rhc/commands/port_forward.rb, line 36 def <=>(other) if bound? && !other.bound? -1 elsif !bound? && other.bound? 1 else order_by_attrs(other, :service, :remote_host, :port_from) end end
# File lib/rhc/commands/port_forward.rb, line 31 def bound? @bound end
# File lib/rhc/commands/port_forward.rb, line 12 def initialize(service, remote_host, port_to, port_from = nil) @service = service @remote_host = remote_host @port_to = port_to @host_from = '127.0.0.1' @port_from = port_from || port_to # match ports if possible @bound = false end
Generated with the Darkfish Rdoc Generator 2.