module SSHClient
Constants
- CommandExitWithError
- VERSION
Public Class Methods
close()
click to toggle source
# File lib/ssh_client.rb, line 24 def self.close @current_connection.close end
config(name = nil)
click to toggle source
# File lib/ssh_client.rb, line 15 def self.config(name = nil) @configurations ||= Hash.new @configurations[name] ||= ConfigItem.new name end
configure(name = nil) { |config(name)| ... }
click to toggle source
# File lib/ssh_client.rb, line 11 def self.configure(name = nil) yield config(name) end
connect(*args, &blk)
click to toggle source
# File lib/ssh_client.rb, line 20 def self.connect(*args, &blk) @current_connection = Connection.new(*args, &blk) end