Method: BurdenWeb::TasksController#run
- Defined in:
- app/controllers/burden_web/tasks_controller.rb
#run ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/burden_web/tasks_controller.rb', line 17 def run Rails.application.load_tasks task = Rake::Task[params[:id]] task.prerequisite_tasks.each{ |t| t.execute(nil) } task.execute(nil) rescue => e # Gotta catch 'em all! ensure redirect_to params[:back] end |