Module: Rake
Constant Summary
-
CommandLineOptionError =
# File 'lib/rake/application.rb', line 12Class.new(StandardError)
-
EARLY =
# File 'lib/rake/early_time.rb', line 20EarlyTime.instance
-
LATE =
# File 'lib/rake/late_time.rb', line 16LateTime.instance
-
VERSION =
# File 'lib/rake/version.rb', line 2"12.0.0"
Class Attribute Summary
-
.application
rw
Current Rake Application.
-
.application=(app)
rw
Set the current
Rake
application object.
Class Method Summary
-
.add_rakelib(*files)
Add files to the rakelib list.
-
.load_rakefile(path)
Load a rakefile.
-
.original_dir
Return the original directory where the
Rake
application was started.
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 |
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 |
::FileUtils - Included
Class Attribute Details
.application (rw)
Current Rake ::Rake::Application
# File 'lib/rake/rake_module.rb', line 7
def application @application ||= Rake::Application.new end
.application=(app) (rw)
Set the current Rake
application object.
# 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
# File 'lib/rake/rake_module.rb', line 32
def add_rakelib(*files) application. .rakelib ||= [] application. .rakelib.concat(files) end
.load_rakefile(path)
Load a rakefile.
# 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.
# File 'lib/rake/rake_module.rb', line 22
def original_dir application.original_dir end