Method: Net::SSH::Authentication::KeyManager#add
- Defined in:
- lib/net/ssh/authentication/key_manager.rb
#add(key_file) ⇒ Object
Add the given key_file to the list of key files that will be used.
64 65 66 67 |
# File 'lib/net/ssh/authentication/key_manager.rb', line 64 def add(key_file) key_files.push(File.(key_file)).uniq! self end |