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/rdoc/task.rb,
lib/rake/win32.rb,
lib/rake/runtest.rb,
lib/rake/tasklib.rb,
lib/rake/testtask.rb,
lib/rake/rdoctask.rb,
lib/rake/packagetask.rb,
lib/rake/compiletask.rb,
lib/rake/gempackagetask.rb,
lib/rake/loaders/makefile.rb,
lib/rake/contrib/ftptools.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, CompileTask, CompositePublisher, DefaultLoader, EarlyTime, FileCreationTask, FileList, FileTask, FtpFile, FtpUploader, GemPackageTask, InvocationChain, MakefileLoader, MultiTask, NameSpace, PackageTask, PseudoStatus, RDocTask, RubyForgePublisher, RuleRecursionOverflowError, SshDirPublisher, SshFilePublisher, SshFreshDirPublisher, Task, TaskArgumentError, TaskArguments, TaskLib, TestTask
Constant Summary
- EMPTY_TASK_ARGS =
TaskArguments.new([], [])
- EARLY =
EarlyTime.instance
Class Method Summary (collapse)
-
+ (Object) application
Current Rake Application.
-
+ (Object) application=(app)
Set the current Rake application object.
-
+ (Object) each_dir_parent(dir)
Yield each file or directory component.
-
+ (Object) original_dir
Return the original directory where the Rake application was started.
Instance Method Summary (collapse)
Methods included from Test::Unit::Assertions
#assert, #assert_block, #assert_equal, #assert_no_match, #assert_not_equal, #assert_not_nil, #assert_not_same, #assert_nothing_raised, #assert_nothing_thrown, #assert_raise, #assert_respond_to, #build_message, #mu_pp
Methods included from MiniTest::Assertions
#_assertions, #_assertions=, #assert, #assert_block, #assert_empty, #assert_equal, #assert_in_delta, #assert_in_epsilon, #assert_includes, #assert_instance_of, #assert_kind_of, #assert_match, #assert_nil, #assert_operator, #assert_raises, #assert_respond_to, #assert_same, #assert_send, #assert_throws, #capture_io, #exception_details, #flunk, #message, #mu_pp, #pass, #refute, #refute_empty, #refute_equal, #refute_in_delta, #refute_in_epsilon, #refute_includes, #refute_instance_of, #refute_kind_of, #refute_match, #refute_nil, #refute_operator, #refute_respond_to, #refute_same, #skip
Class Method Details
+ (Object) application
Current Rake Application
267 268 269 |
# File 'lib/rake.rb', line 267 def application @application ||= Rake::Application.new end |
+ (Object) application=(app)
Set the current Rake application object.
272 273 274 |
# File 'lib/rake.rb', line 272 def application=(app) @application = app end |
+ (Object) each_dir_parent(dir)
Yield each file or directory component.
1593 1594 1595 1596 1597 1598 1599 1600 |
# File 'lib/rake.rb', line 1593 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 |
+ (Object) original_dir
Return the original directory where the Rake application was started.
277 278 279 |
# File 'lib/rake.rb', line 277 def original_dir application.original_dir end |
Instance Method Details
- (Object) run_tests(pattern = 'test/test*.rb', log_enabled = false)
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/rake/runtest.rb', line 7 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 |
- (Object) standard_system_dir
42 43 44 |
# File 'lib/rake/win32.rb', line 42 def standard_system_dir Win32.win32_system_dir end |