Class: Rake::Rails::Tasks

Inherits:
Object
  • Object
show all
Includes:
DSL
Defined in:
lib/rake-rails/tasks.rb

Instance Method Summary collapse

Constructor Details

#initializeTasks

Returns a new instance of Tasks.



29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/rake-rails/tasks.rb', line 29

def initialize
  TASKS.each do |command, description|
    desc description
    task command do
      prevent_additional_arguments_from_running_as_tasks
      require 'rails/cli'
    end
  end

  ALIASES.each do |alias_command, command|
    task alias_command => command
  end
end