i'm trying to upload some files to a svn repository with ruby. But after checking out, the rest of the code is not being executed.
r = SvnRepository.new("#{repDir}")
r.checkout("", ".", user, pass)
puts "NOT EXECUTING!"
`cp -r #{compFold} ./trunk/#{compFold}`
r.add("trunk", "./#{compFold}")
r.commit("trunk", "Component #{compFold} uploaded", user, pass)
r.checkout code:
def checkout(repository, working_copy_path, user = nil, pass = nil)
#result = `cd #{working_copy_path} && #{@svn} co file:///#{@repository_base}/#{repository}`
check = "cd #{working_copy_path} && #{@svn} co #{@repository_base}/#{repository}"
if user != nil
check = check + " --username #{user}"
if pass != nil
check = check + " --password #{pass}"
end
end
result = exec(check)
result[/d+/]
end