/tools/Ruby/lib/ruby/gems/1.8/gems/rake-0.9.2/lib/rake/rake_module.rb

http://github.com/agross/netopenspace · Ruby · 29 lines · 17 code · 6 blank · 6 comment · 0 complexity · 8ad6c6571ad30286244c6b657d54c6f4 MD5 · raw file

  1. require 'rake/application'
  2. module Rake
  3. # Rake module singleton methods.
  4. #
  5. class << self
  6. # Current Rake Application
  7. def application
  8. @application ||= Rake::Application.new
  9. end
  10. # Set the current Rake application object.
  11. def application=(app)
  12. @application = app
  13. end
  14. # Return the original directory where the Rake application was started.
  15. def original_dir
  16. application.original_dir
  17. end
  18. # Load a rakefile.
  19. def load_rakefile(path)
  20. load(path)
  21. end
  22. end
  23. end