Rake task for generating code