class

Shellmin::ConnectionManager

Inherits Reference < Object

Manages a pool of SSH connections to remote hosts. Handles connection lifecycle, pooling, and stale connection cleanup.

Constants

DEFAULT_MAX_CONNECTIONS = 10
MAX_CONNECTION_AGE = 30.minutes
MAX_CONNECTION_USES = 100

Constructors

new(max_connections : Int32 = DEFAULT_MAX_CONNECTIONS)
Source

Instance methods

connect(host : String, user : String = "root", port : Int32 = 22, password : String | Nil = nil, key_path : String | Nil = nil) : SSHConnection
Source
execute_on(host : String, command : String, user : String = "root", port : Int32 = 22, password : String | Nil = nil, key_path : String | Nil = nil) : Tuple(String, String, Int32)
Source
max_connections
Source
shutdown
Source
stats
Source