# File lib/net/ssh/known-hosts.rb, line 18 def add(host, key) hostfile_locations.each do |file| begin KnownHosts.new(file).add(host, key) return rescue SystemCallError # try the next hostfile end end end