module Rake
Constants
- EMPTY_TASK_ARGS
Public Instance Methods
application()
click to toggle source
Current Rake Application
# File lib/rake.rb, line 269 def application @application ||= Rake::Application.new end
application=(app)
click to toggle source
Set the current Rake application object.
# File lib/rake.rb, line 274 def application=(app) @application = app end
original_dir()
click to toggle source
Return the original directory where the Rake application was started.
# File lib/rake.rb, line 279 def original_dir application.original_dir end
run_tests(pattern='test/test*.rb', log_enabled=false)
click to toggle source
# 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