Method: WinRM::Shells::Cmd.close_shell

Defined in:
lib/winrm/shells/cmd.rb

.close_shell(connection_opts, transport, shell_id) ⇒ Object



27
28
29
30
# File 'lib/winrm/shells/cmd.rb', line 27

def close_shell(connection_opts, transport, shell_id)
  msg = WinRM::WSMV::CloseShell.new(connection_opts, shell_id: shell_id)
  transport.send_request(msg.build)
end