scripts and rake tasks

Hi all!

I'll get straight to the point. Was good to see some scripts being moved to a plugin, but some others still not making much sense (for me :D) to be a script.... such as "generate", or "plugin"..... Wouldn't be better if they were rake tasks?

Such as "rake plugins:install", "rake plugins:uninstall", "rake generate:controller", "rake generate:model", "rake generate:plugin".... and others... ?

Bye!

Maybe it's because rake tasks don't handle arguments well? It would be a pain to do this:

rake plugins:install PATH='path/to/plugin' rake generate:model NAME='User' ATTRIBUTES='name:string'

Regards,

Ryan

I don't think rake is a good candidate for these. Ryan makes a good point about the argument syntax being a bit awkward, but rake is built for dependency-based tasks, not as a generic batch file runner. Script/generate doesn't really need a dependency framework around it: it's just a script that blurts out code. So I think it's better to keep them separate from rake.

Jeff

purpleworkshops.com softiesonrails.com