Calling a controller method with a rake task - plugin errors

I have a rake task to call a controller method: