em-winrm 0.5.0 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/em-winrm/server.rb +3 -1
- data/lib/em-winrm/version.rb +1 -1
- metadata +1 -1
data/lib/em-winrm/server.rb
CHANGED
@@ -76,7 +76,9 @@ module EventMachine
|
|
76
76
|
@winrm ||= begin
|
77
77
|
http_method = ( @options[:port].to_s=~/(443|5986)/ ? 'https' : 'http' )
|
78
78
|
endpoint = "#{http_method}://#{@host}:#{@options[:port]}/wsman"
|
79
|
-
::WinRM::WinRMWebService.new(endpoint, @transport, @options)
|
79
|
+
client = ::WinRM::WinRMWebService.new(endpoint, @transport, @options)
|
80
|
+
client.set_timeout(@options[:operation_timeout]) if @options[:operation_timeout]
|
81
|
+
client
|
80
82
|
rescue ::WinRM::WinRMAuthorizationError => error
|
81
83
|
raise ::WinRM::WinRMAuthorizationError.new("#{error.message}@#{@host}")
|
82
84
|
end
|
data/lib/em-winrm/version.rb
CHANGED