class Net::SSH::HostKeys
Represents the result of a search in known hosts see search_for
Attributes
Public Class Methods
Source
# File lib/net/ssh/known_hosts.rb, line 73 def initialize(host_keys, host, known_hosts, options = {}) @host_keys = host_keys @host = host @known_hosts = known_hosts @options = options end
Public Instance Methods
Source
# File lib/net/ssh/known_hosts.rb, line 80 def add_host_key(key) @known_hosts.add(@host, key, @options) @host_keys.push(key) end
Source
# File lib/net/ssh/known_hosts.rb, line 85 def each(&block) @host_keys.each(&block) end