# File lib/puppet/rails/benchmark.rb, line 52 52: def write_benchmarks 53: return unless time_debug? 54: 55: branch = %x{git branch}.split("\n").find { |l| l =~ /^\*/ }.sub("* ", '') 56: 57: file = "/tmp/time_debugging.yaml" 58: 59: require 'yaml' 60: 61: if FileTest.exist?(file) 62: data = YAML.load_file(file) 63: else 64: data = {} 65: end 66: data[branch] = $benchmarks 67: File.open(file, "w") { |f| f.print YAML.dump(data) } 68: end