rake1
Make-like build utility for ruby
Usage
rake [-f
rakefile]
[options]
targets ...
Overview
rake is a make(1)-like build utility for Ruby. Tasks and dependencies are specified in standard Ruby syntax.
Options
-
-m, --multitask -
Treat all tasks as multitasks.
-
-B, --build-all -
Build all prerequisites, including those which are up-to-date.
-
-j, --jobs num_jobs -
Specifies the maximum number of tasks to execute in parallel (default is number of CPU cores + 4).
Modules
-
-I, --libdir libdir -
Include libdir in the search path for required modules.
-
-r, --require module -
Require module before executing rakefile.
Rakefile location
-
-f, --rakefile filename -
Use filename as the rakefile to search for.
-
-N, --no-search, --nosearch -
Do not search parent directories for the Rakefile.
-
-G, --no-system, --nosystem -
Use standard project Rakefile search paths, ignore system wide rakefiles.
-
-R, --rakelib rakelibdir, --rakelibdir rakelibdir -
Auto-import any .rake files in rakelibdir (default is ‘rakelib’)
-
-g, --system -
Use system-wide (global) rakefiles (usually ~/.rake/*.rake).
Debugging
-
--backtrace=out -
Enable full backtrace. out can be stderr (default) or stdout.
-
-t, --trace=out -
Turn on invoke/execute tracing, enable full backtrace. out can be stderr (default) or stdout.
-
--suppress-backtrace pattern -
Suppress backtrace lines matching regexp pattern. Ignored if
--traceis on. -
--rules -
Trace the rules resolution.
-
-n, --dry-run -
Do a dry run without executing actions.
-
-T, --tasks [pattern] -
Display the tasks (matching optional pattern) with descriptions, then exit.
-
-D, --describe [pattern] -
Describe the tasks (matching optional pattern), then exit.
-
-W, --where [pattern] -
Describe the tasks (matching optional pattern), then exit.
-
-P, --prereqs -
Display the tasks and dependencies, then exit.
-
-e, --execute code -
Execute some Ruby code and exit.
-
-p, --execute-print code -
Execute some Ruby code, print the result, then exit.
-
-E, --execute-continue code -
Execute some Ruby code, then continue with normal task processing.
Information
-
-v, --verbose -
Log message to standard output.
-
-q, --quiet -
Do not log messages to standard output.
-
-s, --silent -
Like
--quiet, but also suppresses the ‘in directory’ announcement. -
-X, --no-deprecation-warnings -
Disable the deprecation warnings.
-
--comments -
Show commented tasks only
-
-A, --all -
Show all tasks, even uncommented ones (in combination with
-Tor-D) -
--job-stats [level] -
Display job statistics. If level is ‘history’, displays a complete job list.
-
-V, --version -
Display the program version.
-
-h, -H, --help -
Display a help message.
Releases
11 releases since Debian 3.1 (Sarge); the text changed 4 times.
--all since Debian 8 (Jessie);
--backtrace since Debian 8 (Jessie);
--build-all since Debian 8 (Jessie);
--comments since Debian 8 (Jessie);
--describe since Debian 8 (Jessie);
--execute since Debian 8 (Jessie);
--execute-continue since Debian 8 (Jessie);
--execute-print since Debian 8 (Jessie);
--job-stats since Debian 8 (Jessie);
--jobs since Debian 8 (Jessie);
--multitask since Debian 8 (Jessie);
--no-deprecation-warnings since Debian 8 (Jessie);
--no-search since Debian 8 (Jessie);
--no-system since Debian 8 (Jessie);
--nosearch since Debian 8 (Jessie);
--nosystem since Debian 8 (Jessie);
--rakelib since Debian 10 (Buster);
--rakelibdir since Debian 8 (Jessie);
--rules since Debian 8 (Jessie);
--suppress-backtrace since Debian 8 (Jessie);
--system since Debian 8 (Jessie);
--where since Debian 8 (Jessie);
-A since Debian 8 (Jessie);
-B since Debian 8 (Jessie);
-D since Debian 8 (Jessie);
-E since Debian 8 (Jessie);
-G since Debian 8 (Jessie);
-N since Debian 8 (Jessie);
-R since Debian 8 (Jessie);
-W since Debian 8 (Jessie);
-X since Debian 8 (Jessie);
-e since Debian 8 (Jessie);
-g since Debian 8 (Jessie);
-j since Debian 8 (Jessie);
-m since Debian 8 (Jessie);
-p since Debian 8 (Jessie).
--usage until Debian 7 (Wheezy);
-N--nosearch until Debian 7 (Wheezy).