Included modules
- Test::Unit::Assertions
Classes and Modules
- Application
- DefaultLoader
- EarlyTime
- FileCreationTask
- FileList
- FileTask
- InvocationChain
- MakefileLoader
- MultiTask
- NameSpace
- PackageTask
- InvokeInsideInvoke
- PseudoStatus
- RDocTask
- RuleRecursionOverflowError
- Task
- TaskArgumentError
- TaskArguments
- TaskLib
- TestTask
- AltSystem
- Cloneable
- DSL
- DeprecatedObjectDSL
- FileUtilsExt
- InvocationExceptionMixin
- Parallel
- TaskManager
- Version
- Win32
Constants
EARLY | = | EarlyTime.instance | ||
GemPackageTask | = | Gem::PackageTask | ||
RDocTask | = | RDoc::Task unless const_defined? :RDocTask | ||
EMPTY_TASK_ARGS | = | TaskArguments.new([], []) | ||
VERSION | = | Version::NUMBERS.join('.') |
Public Class methods
application
()
Current Rake Application
[show source]
# File lib/rake/rake_module.rb, line 9 9: def application 10: @application ||= Rake::Application.new 11: end
application=
(app)
Set the current Rake application object.
[show source]
# File lib/rake/rake_module.rb, line 14 14: def application=(app) 15: @application = app 16: end
original_dir
()
Return the original directory where the Rake application was started.
[show source]
# File lib/rake/rake_module.rb, line 19 19: def original_dir 20: application.original_dir 21: end
load_rakefile
(path)
Load a rakefile.
[show source]
# File lib/rake/rake_module.rb, line 24 24: def load_rakefile(path) 25: load(path) 26: end
Public Instance methods
run_tests
(pattern='test/test*.rb', log_enabled=false)
[show source]
# File lib/rake/runtest.rb, line 7 7: def run_tests(pattern='test/test*.rb', log_enabled=false) 8: Dir["#{pattern}"].each { |fn| 9: $stderr.puts fn if log_enabled 10: begin 11: require fn 12: rescue Exception => ex 13: $stderr.puts "Error in #{fn}: #{ex.message}" 14: $stderr.puts ex.backtrace 15: assert false 16: end 17: } 18: end