Module: ZTK::SSH::Console
- Included in:
- ZTK::SSH
- Defined in:
- lib/ztk/ssh/console.rb
Overview
SSH Console Functionality
Instance Method Summary (collapse)
-
- (Object) console(*arguments)
Launches an SSH console, replacing the current process with the console process.
Instance Method Details
- (Object) console(*arguments)
Launches an SSH console, replacing the current process with the console process.
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/ztk/ssh/console.rb', line 17 def console(*arguments) command = [console_command, *arguments].flatten.compact.join(' ') config.ui.logger.debug { "config=#{config.send(:table).inspect}" } config.ui.logger.info { "console(#{command.inspect})" } config.ui.logger.fatal { "REPLACING CURRENT PROCESS - GOODBYE!" } Kernel.exec(command) end |