Class: DRb::DRbSSHLocalClient

Inherits:
DRbSSHClient show all
Defined in:
lib/drbssh.rb

Overview

DRbSSH client used to contact local objects - used on remote side.

Instance Attribute Summary

Attributes inherited from DRbSSHClient

#read_fd, #receiveq, #sendq, #write_fd

Instance Method Summary collapse

Methods inherited from DRbSSHClient

#alive?, #recv_reply, #send_request

Constructor Details

#initialize(server) ⇒ DRbSSHLocalClient

Use stdin/stdout to talk with the local side of an SSH-connection.



153
154
155
156
157
# File 'lib/drbssh.rb', line 153

def initialize(server)
	@read_fd, @write_fd = $stdin, $stdout

	super(server)
end

Instance Method Details

#closeObject

Kill Ruby if client is asked to close.



160
161
162
# File 'lib/drbssh.rb', line 160

def close
	Kernel.exit 0
end