I am developping an app and i need to download some files using sftp. I installed the gem net-sftp and its works fine. Using the monitoring process i've found on this page : http://net-ssh.rubyforge.org/sftp/v2/api/, i can see the progress in my terminal. The thing is, i'ld like to let the user see what is going on during the process, showing a progress bar and maybe displaying a monitoring line in my user interface.
I have tried many things, but none of them work. When i enter the download loop, i can't modify any of my instance variables, so i can't save the monitoring data to display it with javascript. alter-filters doesn't work either.
I don't know how to store the information in the loop to use it in my UI. Any idea ?