lib/veewee/provider/core/helper/winrm.rb in veewee-0.4.2 vs lib/veewee/provider/core/helper/winrm.rb in veewee-0.4.3

- old
+ new

@@ -20,9 +20,20 @@ require 'timeout' require 'log4r' require 'em-winrm' require 'highline' + def build_winrm_options + { + :user => definition.winrm_user, + :pass => definition.winrm_password, + :port => definition.winrm_host_port, + :basic_auth_only => true, + :timeout => definition.winrm_login_timeout.to_i, + :operation_timeout => 600 # ten minutes + } + end + def winrm_up?(ip,options) begin if not @winrm_up @httpcli = HTTPClient.new(:agent_name => 'Ruby WinRM Client') @httpcli.receive_timeout = 10