class Net::SSH::HostKeys
Represents the result of a search in known hosts see search_for
Attributes
host[R]
Public Class Methods
new(host_keys, host, known_hosts, options = {})
click to toggle source
Calls superclass method
# File lib/net/ssh/known_hosts.rb, line 13 def initialize(host_keys, host, known_hosts, options = {}) super(host_keys) @host = host @known_hosts = known_hosts @options = options end
Public Instance Methods
add_host_key(key)
click to toggle source
# File lib/net/ssh/known_hosts.rb, line 20 def add_host_key(key) @known_hosts.add(@host, key, @options) push(key) end