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 error(host, port = Remotes::PORT)
      raise 'Host can\'t be nil' if host.nil?
      raise 'Port can\'t be nil' if port.nil?
      raise 'Port has to be of type Integer' unless port.is_a?(Integer)
      list = load
      raise "#{host}:#{port} is absent among #{list.count} remotes" unless exists?(host, port)
      list.find { |r| r[:host] == host.downcase && r[:port] == port }[:errors] += 1
      save(list)
    end
def error ( host , port = Remotes :: PORT ) raise 'Host can\'t be nil' if host . nil? raise 'Port can\'t be nil' if port . nil? raise 'Port has to be of type Integer' unless port . is_a? ( Integer ) list = load raise "#{host}:#{port} is absent among #{list.count} remotes" unless exists? ( host , port ) list . find { | r | r [ :host ] == host . downcase && r [ :port ] == port } [ :errors ] += 1 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>