Forums » General Forum »
Lockdown generator
Added by Andrew Stone 172 days ago
When I first created the lockdown generator I had zero experience with generators, but now that I've worked on a couple other generator styled projects, I think it's time to rewrite the lockdown generator options.
So I was thinking of the following and would like any feedback:
Remove --all option and just have the following produce the same as --all./script/generator lockdownNamespace the management screens
./script/generator lockdown --namespace=adminGenerate everything but migrations
./script/generator lockdown --skip-migrationsGenerate everything but login (sessions controller and sessions view dir)
./script/generator lockdown --skip-loginGenerate everything but management screens. (controllers, helpers and views for users, permissions and user_groups are not generated). Renders namespace option meaningless.
./script/generator lockdown --skip-managementJust generate the basics. This is equivalent to --skip-management and --skip-login
./script/generator lockdown --basics
I think this is much clearer. Thoughts?