Skip to content

Commit

Permalink
cleanup some connection yard docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mwrock committed Jul 7, 2016
1 parent f05b9dd commit 2b18311
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/winrm/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def initialize(connection_opts)
# Creates a new shell on the remote Windows server associated with
# this connection.
# @param shell_type [Symbol] The shell type :cmd or :powershell
# @return [Shell|Cmd] PowerShell or Cmd shell instance.
# @return [Shell] PowerShell or Cmd shell instance.
def shell(shell_type)
shell = shell_factory.create_shell(shell_type)
if block_given?
Expand All @@ -48,6 +48,9 @@ def shell(shell_type)
end
end

# Executes a WQL query against the WinRM connection
# @param wql [String] The wql query
# @return [Hash] Hash representation of wql query response
def run_wql(wql)
query = WinRM::WSMV::WqlQuery.new(@connection_opts, wql)
query.process_response(transport.send_request(query.build))
Expand Down

0 comments on commit 2b18311

Please sign in to comment.