Method: Rake::Application#raw_load_rakefile
- Defined in:
- lib/rake/application.rb
#raw_load_rakefile ⇒ Object
:nodoc:
622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 |
# File 'lib/rake/application.rb', line 622 def raw_load_rakefile # :nodoc: rakefile, location = find_rakefile_location if (! .ignore_system) && (.load_system || rakefile.nil?) && system_dir && File.directory?(system_dir) print_rakefile_directory(location) glob("#{system_dir}/*.rake") do |name| add_import name end else fail "No Rakefile found (looking for: #{@rakefiles.join(', ')})" if rakefile.nil? @rakefile = rakefile Dir.chdir(location) print_rakefile_directory(location) Rake.load_rakefile(File.(@rakefile)) if @rakefile && @rakefile != '' .rakelib.each do |rlib| glob("#{rlib}/*.rake") do |name| add_import name end end end load_imports end |