# File lib/railsbench/perf_utils.rb, line 35 def determine_rails_root_or_die!(msg=nil) unless ENV['RAILS_ROOT'] if File.directory?("config") && File.exists?("config/environment.rb") ENV['RAILS_ROOT'] = File.expand_path(".") else die(msg || "#{File.basename $PROGRAM_NAME}: $RAILS_ROOT not set and could not be configured automatically") end end end