Class: SSHKit::Backend::Libssh::Configuration
- Inherits:
-
Object
- Object
- SSHKit::Backend::Libssh::Configuration
- Defined in:
- lib/sshkit/backends/libssh.rb
Overview
Configuration class compatible with Netssh::Configuration.
Instance Attribute Summary collapse
-
#connection_timeout ⇒ Fixnum
Connection timeout in second.
-
#pty ⇒ Boolean
Allocate a PTY or not.
-
#ssh_options ⇒ Hash
Various options for libssh.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
31 32 33 34 35 36 |
# File 'lib/sshkit/backends/libssh.rb', line 31 def initialize super self.pty = false self.connection_timeout = 30 self. = {} end |
Instance Attribute Details
#connection_timeout ⇒ Fixnum
Connection timeout in second. Default is 30.
29 |
# File 'lib/sshkit/backends/libssh.rb', line 29 attr_accessor :pty, :connection_timeout, :ssh_options |
#pty ⇒ Boolean
Allocate a PTY or not. Default is false.
29 30 31 |
# File 'lib/sshkit/backends/libssh.rb', line 29 def pty @pty end |
#ssh_options ⇒ Hash
TODO:
Describe supported options.
Various options for libssh. Some of them are compatible with Netssh::Configuration#ssh_options.
29 |
# File 'lib/sshkit/backends/libssh.rb', line 29 attr_accessor :pty, :connection_timeout, :ssh_options |