class SSHKit::Backend::Netssh::Configuration
Attributes
connection_timeout[RW]
pty[RW]
ssh_options[W]
Public Instance Methods
ssh_options()
click to toggle source
# File lib/sshkit/backends/netssh.rb, line 30 def ssh_options default_options.merge(@ssh_options ||= {}) end
Private Instance Methods
assign_defaults()
click to toggle source
Set default options early for ConnectionPool
cache key
# File lib/sshkit/backends/netssh.rb, line 49 def assign_defaults if Net::SSH.respond_to?(:assign_defaults) Net::SSH.assign_defaults(@default_options) else # net-ssh < 4.0.0 doesn't have assign_defaults unless @default_options.key?(:logger) require 'logger' @default_options[:logger] = ::Logger.new(STDERR) @default_options[:logger].level = ::Logger::FATAL end end @default_options end
default_options()
click to toggle source
# File lib/sshkit/backends/netssh.rb, line 37 def default_options @default_options ||= {known_hosts: SSHKit::Backend::Netssh::KnownHosts.new} assign_defaults end