Method: SshHelper::TmcSsh#stop

Defined in:
lib/helpers/tmc_helpers/ssh_helper/ssh_helper.rb

#stopObject

Public: Stops the SSH session.

Returns nothing.



194
195
196
197
198
199
200
201
202
# File 'lib/helpers/tmc_helpers/ssh_helper/ssh_helper.rb', line 194

def stop
  loginfo('Stopping')
  stop_pty unless @pty.nil?
  unless @ssh.nil?
    @ssh.close
    @ssh = nil
    @ssh_channel = nil
  end
end