Displaying 1 result from an estimated 1 matches for "import_status".
2007 Mar 05
0
dynamic status back to client...
...long worker process I want to capture the output as dynamically
as possible and send it to the client. I do the following currently:
class SvnWorker < Worker::Base
def do_stuff(args)
tmp = []
my_project = args[:repo]
# Import the contents of a 20 Meg project into a bare bones svn repo.
import_status = `svn import #{path_to_extracted_zipdir}
file://#{my_project}`
tmp = import_status
results[:response] = tmp
end
def status
results[:response]
end
end
This only fills results[:response] at the end of the system call ... I
would rather dynamically get all the output to stdout the svn impo...