LOTP

rake

cli eval-sh config-file

References

Rake is a tool similar to Make, but in Ruby. Instead of a Makefile, it uses a Rakefile written in Ruby. Unlike Make, Rake will look for a Rakefile in the current directory or any parent directories:

When issuing the rake command in a terminal, Rake will look for a Rakefile in the current directory. If a Rakefile is not found, it will search parent directories until one is found. As far as rake is concerned, all tasks are run from the directory in which the Rakefile resides.

In Ruby on Rails projects, Rake tasks defined in lib/tasks/*.rake are loaded by default.

Rake is sometimes invoked fom the Rails CLI. Some Rails commands are in fact Rake tasks and will force the evaluation of the Rakefile and Rake tasks:

rails db:create
rails assets:precompile