Module: Rake
- Extended by:
- Rake
- Includes:
- Test::Unit::Assertions
- Included in:
- Rake
- Defined in:
- lib/rake.rb,
lib/rake.rb,
lib/rake.rb,
lib/rake.rb,
lib/rake.rb,
lib/rake.rb,
lib/rake/win32.rb,
lib/rake/runtest.rb,
lib/rake/tasklib.rb,
lib/rake/rdoctask.rb,
lib/rake/testtask.rb,
lib/rake/packagetask.rb,
lib/rake/gempackagetask.rb,
lib/rake/contrib/ftptools.rb,
lib/rake/loaders/makefile.rb,
lib/rake/contrib/sshpublisher.rb,
lib/rake/contrib/compositepublisher.rb,
lib/rake/contrib/rubyforgepublisher.rb
Overview
:nodoc:
Defined Under Namespace
Modules: Cloneable, TaskManager, Win32 Classes: Application, CompositePublisher, DefaultLoader, EarlyTime, FileCreationTask, FileList, FileTask, FtpFile, FtpUploader, GemPackageTask, InvocationChain, MakefileLoader, MultiTask, NameSpace, PackageTask, RDocTask, RubyForgePublisher, RuleRecursionOverflowError, SshDirPublisher, SshFilePublisher, SshFreshDirPublisher, Task, TaskArgumentError, TaskArguments, TaskLib, TestTask
Constant Summary collapse
- EMPTY_TASK_ARGS =
TaskArguments.new([], [])
- EARLY =
EarlyTime.instance
Class Method Summary collapse
-
.application ⇒ Object
Current Rake Application.
-
.application=(app) ⇒ Object
Set the current Rake application object.
-
.each_dir_parent(dir) ⇒ Object
Yield each file or directory component.
-
.original_dir ⇒ Object
Return the original directory where the Rake application was started.
Instance Method Summary collapse
Class Method Details
.application ⇒ Object
Current Rake Application
271 272 273 |
# File 'lib/rake.rb', line 271 def application @application ||= Rake::Application.new end |
.application=(app) ⇒ Object
Set the current Rake application object.
276 277 278 |
# File 'lib/rake.rb', line 276 def application=(app) @application = app end |
.each_dir_parent(dir) ⇒ Object
Yield each file or directory component.
1578 1579 1580 1581 1582 1583 1584 1585 |
# File 'lib/rake.rb', line 1578 def each_dir_parent(dir) # :nodoc: old_length = nil while dir != '.' && dir.length != old_length yield(dir) old_length = dir.length dir = File.dirname(dir) end end |
.original_dir ⇒ Object
Return the original directory where the Rake application was started.
281 282 283 |
# File 'lib/rake.rb', line 281 def original_dir application.original_dir end |
Instance Method Details
#run_tests(pattern = 'test/test*.rb', log_enabled = false) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# 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.}" puts ex.backtrace assert false end } end |