IntelliJ IDEA 2016.3 Help

Creating Rake Tasks

This feature is supported in the Ultimate edition only.

After IntelliJ IDEA restart, or after reloading Rake tasks, the *.rake files become available in the Run Rake Task pop-up.

To create a Rake task

  1. Right-click the target directory lib/tasks where you want the new Rake script to be added, and choose New |File on the context menu.
  2. In the New File dialog box, specify the Rake task name, followed by the .rake extension, and click OK.
  3. In the editor, create the desired contents, using the powerful IntelliJ IDEA coding assistance:
    /help/img/idea/2016.3/ruby_rakeTasksCode.png

    After IntelliJ IDEA restart, or after reloading Rake tasks, the new *.rake files will be included in the list of available Rake tasks.

    /help/img/idea/2016.3/ruby_RakeMenuWithCustomTask.png

See Also

Last modified: 21 March 2017