lib/veewee/provider/core/box/wincp.rb in veewee-0.4.5.pre1 vs lib/veewee/provider/core/box/wincp.rb in veewee-0.4.5
- old
+ new
@@ -24,21 +24,22 @@
definition.kickstart_port=guessed_port.to_s
end
urlpath = localfile.to_slug
urlpath = urlpath.start_with?('/') ? urlpath : '/' + urlpath
- env.ui.warn "Spinning up an allow_for_http_request on http://#{host_ip_as_seen_by_guest}:#{definition.kickstart_port}#{localfile} at URL #{urlpath}"
- allow_for_http_request(
- localfile,
- urlpath,
- {
- :port => definition.kickstart_port,
- :timeout => definition.kickstart_timeout,
- }
- )
begin
self.when_winrm_login_works(self.ip_address,winrm_options.merge(options)) do
+ env.ui.warn "Spinning up an allow_for_http_request on http://#{host_ip_as_seen_by_guest}:#{definition.kickstart_port}#{localfile} at URL #{urlpath}"
+ allow_for_http_request(
+ localfile,
+ urlpath,
+ {
+ :port => definition.kickstart_port,
+ :timeout => 300,
+ }
+ )
+
env.ui.info "Going to try and copy #{localfile} to #{remotefile.inspect}"
self.exec("cmd.exe /C cscript %TEMP%\\wget.vbs /url:http://#{host_ip_as_seen_by_guest}:#{definition.kickstart_port}#{urlpath} /path:#{remotefile}")
# while true do
# sleep 0.1 # used to debug
# end