123456789_123456789_123456789_123456789_123456789_

Module: Rake

Relationships & Source Files
Namespace Children
Modules:
Classes:
Exceptions:
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
self, Test::Unit::Assertions
Defined in: lib/rake.rb,
lib/rake/application.rb,
lib/rake/backtrace.rb,
lib/rake/clean.rb,
lib/rake/cloneable.rb,
lib/rake/cpu_counter.rb,
lib/rake/default_loader.rb,
lib/rake/dsl_definition.rb,
lib/rake/early_time.rb,
lib/rake/file_creation_task.rb,
lib/rake/file_list.rb,
lib/rake/file_list.rb,
lib/rake/file_task.rb,
lib/rake/file_utils_ext.rb,
lib/rake/invocation_chain.rb,
lib/rake/invocation_exception_mixin.rb,
lib/rake/late_time.rb,
lib/rake/linked_list.rb,
lib/rake/multi_task.rb,
lib/rake/packagetask.rb,
lib/rake/private_reader.rb,
lib/rake/promise.rb,
lib/rake/pseudo_status.rb,
lib/rake/rake_module.rb,
lib/rake/rule_recursion_overflow_error.rb,
lib/rake/runtest.rb,
lib/rake/scope.rb,
lib/rake/task.rb,
lib/rake/task_argument_error.rb,
lib/rake/task_arguments.rb,
lib/rake/task_manager.rb,
lib/rake/tasklib.rb,
lib/rake/testtask.rb,
lib/rake/thread_history_display.rb,
lib/rake/thread_pool.rb,
lib/rake/trace_output.rb,
lib/rake/version.rb,
lib/rake/win32.rb,
lib/rake/contrib/compositepublisher.rb,
lib/rake/contrib/ftptools.rb,
lib/rake/contrib/rubyforgepublisher.rb,
lib/rake/contrib/sshpublisher.rb,
lib/rake/loaders/makefile.rb

Constant Summary

Class Attribute Summary

Class Method Summary

FileUtilsExt - Extended

nowrite

Get/set the nowrite flag controlling output from the ::FileUtils utilities.

rake_check_options

Check that the options do not contain options not listed in optdecl.

rake_merge_option

Merge the given options with the default values.

rake_output_message

Send the message to the default rake output (which is $stderr).

verbose

Get/set the verbose flag controlling output from the ::FileUtils utilities.

when_writing

Use this function to prevent potentially destructive ruby code from running when the :nowrite flag is set.

::FileUtils - Included

ruby

Run a Ruby interpreter with the given arguments.

safe_ln

Attempt to do a normal file link, but fall back to a copy if the link fails.

sh

Run the system command cmd.

split_all

Split a file path into individual directory names.

Class Attribute Details

.application (rw)

Current Rake ::Rake::Application

[ GitHub ]

  
# File 'lib/rake/rake_module.rb', line 7

def application
  @application ||= Rake::Application.new
end

.application=(app) (rw)

Set the current Rake application object.

[ GitHub ]

  
# File 'lib/rake/rake_module.rb', line 12

def application=(app)
  @application = app
end

Class Method Details

.add_rakelib(*files)

Add files to the rakelib list

[ GitHub ]

  
# File 'lib/rake/rake_module.rb', line 32

def add_rakelib(*files)
  application.options.rakelib ||= []
  application.options.rakelib.concat(files)
end

.load_rakefile(path)

Load a rakefile.

[ GitHub ]

  
# File 'lib/rake/rake_module.rb', line 27

def load_rakefile(path)
  load(path)
end

.original_dir

Return the original directory where the Rake application was started.

[ GitHub ]

  
# File 'lib/rake/rake_module.rb', line 22

def original_dir
  application.original_dir
end