Skip to content

Commit 45ce7e2

Browse files
committedOct 20, 2014
move serving https file after login works, update jedi4ever#1000
1 parent 50a9050 commit 45ce7e2

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed
 

‎lib/veewee/provider/core/box/wincp.rb

+10-9
Original file line numberDiff line numberDiff line change
@@ -26,18 +26,19 @@ def wincp(localfile,remotefile,options={})
2626

2727
urlpath = localfile.to_slug
2828
urlpath = urlpath.start_with?('/') ? urlpath : '/' + urlpath
29-
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}"
30-
allow_for_http_request(
31-
localfile,
32-
urlpath,
33-
{
34-
:port => definition.kickstart_port,
35-
:timeout => definition.kickstart_timeout,
36-
}
37-
)
3829

3930
begin
4031
self.when_winrm_login_works(self.ip_address,winrm_options.merge(options)) do
32+
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}"
33+
allow_for_http_request(
34+
localfile,
35+
urlpath,
36+
{
37+
:port => definition.kickstart_port,
38+
:timeout => 300,
39+
}
40+
)
41+
4142
env.ui.info "Going to try and copy #{localfile} to #{remotefile.inspect}"
4243
self.exec("cmd.exe /C cscript %TEMP%\\wget.vbs /url:http://#{host_ip_as_seen_by_guest}:#{definition.kickstart_port}#{urlpath} /path:#{remotefile}")
4344
# while true do

0 commit comments

Comments
 (0)