HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

rake — A Make-like program for Ruby. Tasks for `rake` are specified in a Rakefile. More information: <https

Submitted by: @import:tldr-pages··
0
Viewed 0 times
rubycommandlikeclirakeprogramformake

Problem

How to use the rake command: A Make-like program for Ruby. Tasks for rake are specified in a Rakefile. More information: <https://ruby.github.io/rake/>.

Solution

rake — A Make-like program for Ruby. Tasks for rake are specified in a Rakefile. More information: <https://ruby.github.io/rake/>.

Run the default Rakefile task:
rake


Run a specific task:
rake {{task}}


Execute n jobs at a time in parallel (number of CPU cores + 4 by default):
rake --jobs {{n}}


Use a specific Rakefile:
rake --rakefile {{path/to/Rakefile}}


Execute rake from another directory:
rake --directory {{path/to/directory}}

Code Snippets

Run the `default` Rakefile task

rake

Run a specific task

rake {{task}}

Execute `n` jobs at a time in parallel (number of CPU cores + 4 by default)

rake --jobs {{n}}

Use a specific Rakefile

rake --rakefile {{path/to/Rakefile}}

Execute `rake` from another directory

rake --directory {{path/to/directory}}

Context

tldr-pages: common/rake

Revisions (0)

No revisions yet.