Topic summary
Rake (software)

Make-like tool written in Ruby RakeDeveloperJim WeirichStable release13.2.1 / April 5, 2024; 2 years ago (2024-04-05) Written inRubyOperating systemCross-platformTypeSoftware development toolsLicenseMIT LicenseWebsiteruby.github.io/rake/Repositorygithub.com/ruby/rake Rake is a software task management and a build automation tool created by Jim Weirich. It allows the user to specify tasks and to describe dependencies as well as to group tasks into namespaces. It is similar to SCons and Make. Rake was written in Ruby and has been part of the standard library of Ruby since version 1.9. Examples The tasks that should be executed need to be defined in a configuration file called Rakefile. A Rakefile has no special syntax and contains executable Ruby code. Tasks The basic unit in Rake is the task. A task has a name and an action block, that defines its functionality. The following code defines a task called greet that will output the text "Hello, Rake!" to the console. task :greet do puts "Hello, Rake!" end When defining a task, you can optionally add dependencies, that is one task can depend on the successful completion of another task. Calling the "seed" task from the following example