Displaying 2 results from an estimated 2 matches for "svnworker".
Did you mean:
runworker
2007 Mar 08
1
cant fully capture child output
...et the io from a child process of a worker back to my
client. There most be something academic I''m missing :/. I looked at
examples in Pickaxe and Ruby PLEAC library ... and I believe the following
should work:
# called from within do_work...
def backup(repo)
logger.info(''SvnWorker backup repo ''+repo)
tmp = []
my_project = DIRS[:project_repos] + "/#{repo}"
dummyfile = ''backuptmp''
temp_file = "#{DIRS[:backups]}/#{dummyfile}"
svn_cmd = "svnadmin dump #{my_project} | gzip -9 > #{temp_file}"
tmp &...
2007 Mar 05
0
dynamic status back to client...
Hi,
I have a 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
resu...