Sha256: 1b78cc61e1dd733d0a6103f3b4d31fc9b559bf09c0463808ae3e49e696f84b65
Contents?: true
Size: 702 Bytes
Versions: 19
Compression:
Stored size: 702 Bytes
Contents
module ZTK class SSH # SSH Console Functionality module Console # Launches an SSH console, replacing the current process with the console # process. # # @example Launch a console: # ssh = ZTK::SSH.new # ssh.config do |config| # config.user = ENV["USER"] # config.host_name = "127.0.0.1" # end # ssh.console def console config.ui.logger.debug { "config=#{config.send(:table).inspect}" } config.ui.logger.info { "console(#{console_command.inspect})" } config.ui.logger.fatal { "REPLACING CURRENT PROCESS - GOODBYE!" } Kernel.exec(console_command) end end end end
Version data entries
19 entries across 19 versions & 1 rubygems