lib/zold/remotes.rb
# The default TCP port all nodes are supposed to use.
The default TCP port all nodes are supposed to use.
The default TCP port all nodes are supposed to use .
def remove(host, port = Remotes::PORT)
      raise 'Port has to be of type Integer' unless port.is_a?(Integer)
      raise 'Host can\'t be nil' if host.nil?
      raise 'Port can\'t be nil' if port.nil?
      raise "#{host}:#{port} is absent" unless exists?(host, port)
      list = load
      list.reject! { |r| r[:host] == host.downcase && r[:port] == port }
      save(list)
    end
def remove ( host , port = Remotes :: PORT ) raise 'Port has to be of type Integer' unless port . is_a? ( Integer ) raise 'Host can\'t be nil' if host . nil? raise 'Port can\'t be nil' if port . nil? raise "#{host}:#{port} is absent" unless exists? ( host , port ) list = load list . reject! { | r | r [ :host ] == host . downcase && r [ :port ] == port } save ( list ) end
The default TCP port all nodes are supposed to use.
The default TCP port all nodes are supposed to use .
host
<not_specific>
port
<not_specific>