Method: WinRM::Shells::Base#close
- Defined in:
- lib/winrm/shells/base.rb
#close ⇒ Object
Closes the shell if one is open
85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/winrm/shells/base.rb', line 85 def close return unless shell_id begin self.class.close_shell(connection_opts, transport, shell_id) rescue WinRMWSManFault => e raise unless [ERROR_OPERATION_ABORTED, SHELL_NOT_FOUND].include?(e.fault_code) end remove_finalizer @shell_id = nil end |