Class: SSHKit::Backend::Libssh::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/sshkit/backends/libssh.rb

Overview

Configuration class compatible with Netssh::Configuration.

Since:

  • 0.1.0

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.

Since:

  • 0.1.0



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.ssh_options = {}
end

Instance Attribute Details

#connection_timeoutFixnum

Connection timeout in second. Default is 30.

Returns:

  • (Fixnum)


29
# File 'lib/sshkit/backends/libssh.rb', line 29

attr_accessor :pty, :connection_timeout, :ssh_options

#ptyBoolean

Allocate a PTY or not. Default is false.

Returns:

  • (Boolean)


29
30
31
# File 'lib/sshkit/backends/libssh.rb', line 29

def pty
  @pty
end

#ssh_optionsHash

TODO:

Describe supported options.

Various options for libssh. Some of them are compatible with Netssh::Configuration#ssh_options.

Returns:

  • (Hash)


29
# File 'lib/sshkit/backends/libssh.rb', line 29

attr_accessor :pty, :connection_timeout, :ssh_options