Displaying 1 result from an estimated 1 matches for "project_repos".
2007 Mar 08
1
cant fully capture child output
...e 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 << "piping to tmp"
results[:txt] = tmp
### i dont get the o...