Current Rake Application
# File lib/rake.rb, line 269 def application @application ||= Rake::Application.new end
Set the current Rake application object.
# File lib/rake.rb, line 274 def application=(app) @application = app end
Return the original directory where the Rake application was started.
# File lib/rake.rb, line 279 def original_dir application.original_dir end
# File lib/rake/runtest.rb, line 9 def run_tests(pattern='test/test*.rb', log_enabled=false) Dir["#{pattern}"].each { |fn| puts fn if log_enabled begin load fn rescue Exception => ex puts "Error in #{fn}: #{ex.message}" puts ex.backtrace assert false end } end
Generated with the Darkfish Rdoc Generator 2.