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

Version Path
ztk-1.6.22 lib/ztk/ssh/console.rb
ztk-1.6.21 lib/ztk/ssh/console.rb
ztk-1.6.20 lib/ztk/ssh/console.rb
ztk-1.6.19 lib/ztk/ssh/console.rb
ztk-1.6.18 lib/ztk/ssh/console.rb
ztk-1.6.17 lib/ztk/ssh/console.rb
ztk-1.6.16 lib/ztk/ssh/console.rb
ztk-1.6.15 lib/ztk/ssh/console.rb
ztk-1.6.14 lib/ztk/ssh/console.rb
ztk-1.6.12 lib/ztk/ssh/console.rb
ztk-1.6.11 lib/ztk/ssh/console.rb
ztk-1.6.10 lib/ztk/ssh/console.rb
ztk-1.6.9 lib/ztk/ssh/console.rb
ztk-1.6.8 lib/ztk/ssh/console.rb
ztk-1.6.7 lib/ztk/ssh/console.rb
ztk-1.6.6 lib/ztk/ssh/console.rb
ztk-1.6.5 lib/ztk/ssh/console.rb
ztk-1.6.4 lib/ztk/ssh/console.rb
ztk-1.6.3 lib/ztk/ssh/console.rb