Method: Zold::Remotes#add

Defined in:
lib/zold/remotes.rb

#add(host, port = PORT) ⇒ Object



179
180
181
182
183
184
185
# File 'lib/zold/remotes.rb', line 179

def add(host, port = PORT)
  assert_host_info(host, port)
  modify do |list|
    list + [{ host: host.downcase, port: port, score: 0, errors: 0 }]
  end
  unerror(host, port)
end