module Net::SSH
def self.configuration_for(host, use_ssh_config)
to read.
be a file name (or array of file names) of SSH configuration file(s)
loaded (and an empty hash returned). Otherwise, +use_ssh_config+ may
/etc/ssh_config. If +use_ssh_config+ is nil or false, nothing will be
default), this will load configuration from both ~/.ssh/config and
from the SSH configuration file(s). If +use_ssh_config+ is true (the
Returns a hash of the configuration options for the given host, as read
def self.configuration_for(host, use_ssh_config) files = case use_ssh_config when true then Net::SSH::Config.expandable_default_files when false, nil then return {} else Array(use_ssh_config) end Net::SSH::Config.for(host, files) end