Method: Rake::Application#find_rakefile_location

Defined in:
lib/rake/application.rb

#find_rakefile_locationObject



605
606
607
608
609
610
611
612
613
614
615
# File 'lib/rake/application.rb', line 605

def find_rakefile_location
  here = Dir.pwd
  until (fn = have_rakefile)
    Dir.chdir("..")
    return nil if Dir.pwd == here || options.nosearch
    here = Dir.pwd
  end
  [fn, here]
ensure
  Dir.chdir(Rake.original_dir)
end