# File lib/net/ssh/known_hosts.rb, line 52 def add(host, key, options={}) hostfiles(options, :user).each do |file| begin KnownHosts.new(file).add(host, key) return rescue SystemCallError # try the next hostfile end end end