Reputation: 17775
I am using Ruby's Net::FTP class to upload a file to a remote server.
Net::FTP.open(SERVER, USER, PASS) do |ftp|
do_foo
ftp.puttextfile(bigfile.txt, bigfile.txt)
do_bar
end
Will Ruby wait for puttextfile
to finish uploading the file before executing the do_bar
method?
If not, how can i have this happen?
Upvotes: 1
Views: 209