lib/ztk/ssh/core.rb
# Attempts to close the gateway session if it is valid.
Attempts to close the gateway session if it is valid.
Attempts to close the gateway session if it is valid .
def close_gateway
        if (!@gateway.nil?)
          config.ui.logger.debug { "gateway object is valid" }
          begin
            config.ui.logger.debug { "attempting to shutdown" }
            @gateway.shutdown!
            config.ui.logger.debug { "shutdown" }
          rescue Exception => e
            config.ui.logger.fatal { "EXCEPTION: #{e.inspect}" }
          end
        else
          config.ui.logger.debug { "gateway object is NIL!" }
        end
      end
def close_gateway if ( ! @gateway . nil? ) config . ui . logger . debug { "gateway object is valid" } begin config . ui . logger . debug { "attempting to shutdown" } @gateway . shutdown! config . ui . logger . debug { "shutdown" } rescue Exception => e config . ui . logger . fatal { "EXCEPTION: #{e.inspect}" } end else config . ui . logger . debug { "gateway object is NIL!" } end end
Attempts to close the gateway session if it is valid.
Attempts to close the gateway session if it is valid .