248 Teilen
3 Ergebnisse
markiert
#task
Rake::Task[:extra_behavior].invoke
Rake::Task[:my_task].invoke(1,'v18_0',20141230)
Running your Rake tasks requires two steps:
Loading Rake
Loading your Rake tasks
You are missing the second step.
Normally this is done in the Rakefile, but you have to do it manually here:
require 'rake'
Rails.application.load_tasks
Rake::Task['my_task'].invoke
