#file: app/helpers/builds_helper.rb def link_to_code(log) log =begin @work_path ||= File.expand_path(@project.path + '/work') log.gsub(/((\#\{RAILS_ROOT\}\/)?([\w\.-]*\/[ \w\/\.-]+)\:(\d+))/) do path, line = File.expand_path($3, @work_path), $4 if path.index(@work_path) == 0 path = path[@work_path.size..-1] link_to ".#{path}:#{line}", "/projects/code/#{@project.name}#{path}?line=#{line}##{line}" else $1 end end =end end
Friday, June 1, 2007
Cruisecontrol.rb is too slow
I encountered a problem with Cruisecontrol.rb, the method link_to_code(log) is too slow to process a certain output log, sometime it takes 10 seconds making Cruisecontrol not workable. So for the time being, as workaround, I just comment out this code .
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment