lib/veewee/provider/virtualbox/box/helper/winrm_options.rb in veewee-0.4.2 vs lib/veewee/provider/virtualbox/box/helper/winrm_options.rb in veewee-0.4.3

- old
+ new

@@ -2,28 +2,19 @@ module Provider module Virtualbox module BoxCommand def winrm_options - port=definition.winrm_host_port - if self.exists? - forward=self.forwarding("guestwinrm") - unless forward.nil? - port=forward[:host_port] + build_winrm_options.tap do |options| + port=definition.winrm_host_port + if self.exists? + forward=self.forwarding("guestwinrm") + unless forward.nil? + port=forward[:host_port] + end end + options[:port] = port end - - winrm_options={ - :user => definition.winrm_user, - :pass => definition.winrm_password, - :port => port, -# :port => (port.to_i+1).to_s, # debug, by running charles with a reverse proxy - :basic_auth_only => true, - :timeout => definition.winrm_login_timeout.to_i, - :operation_timeout => 600 # ten minutes - } - return winrm_options - end end end end