What is rake?

Simply put, what does rake do? What goals does he have? I understand that this is a building tool, but I look in a little more detail. (For a simpleton.)

+57
ruby ruby-on-rails rake
Apr 7 '09 at 8:59
source share
4 answers

Try Martin Fowler's article on Rake for more information:

http://martinfowler.com/articles/rake.html

His pre-amble:

Rake is a build language, similar purpose and ant. Like make and ant, it is a domain-specific language, unlike the two, it is an internal DSL programmed in Ruby. In this article, I present a rake and describe some interesting things that came out of my use of rake to build this website: dependency models, synthesized tasks, custom assembly routines and debug build scripts.

More information is available on the project home page or related to it:

http://rake.rubyforge.org/

+41
Apr 07 '09 at 9:04
source share

These answers suggest that you know what DSL is, or are familiar with Make or Ant. If this is not the case here (perhaps a too simplistic answer):

Rake is a tool you can use with Ruby . It allows you to use ruby ​​code to define "tasks" that can be performed on the command line.

Rake can be downloaded and included in ruby ​​projects as a ruby ​​gem.

After installation, you define tasks in a file called " Rakefile ", which you add to your project.

We call this a “build tool” because Rake comes with some libraries that simplify tasks that are common in the build / deployment process, such as file operations (creating, deleting, renaming and moving files), publishing sites via FTP / SSH and running tests .

For more information, here is the project documentation: http://rake.rubyforge.org/

+55
Nov 29 '13 at 16:41
source share

Rake is an implementation of declarative dependency-based programming in the Ruby programming language . Basically, Rake is Ruby, that Make corresponds to C with the noticeable difference that Make is an external DSL and Rake is an internal DSL.

+10
Apr 07 '09 at 9:10
source share

Rake allows you to execute Ruby code through a beautiful api namespace. For example, rake db: migrate. You can run tasks automatically before and after other tasks. It's all.

+6
Apr 07 '09 at 9:21
source share



All Articles