nsabiyera / Oak

Frictionless development for ASP.NET MVC single page web apps. Prototypical and dynamic capabilities brought to C#.
http://amirrajan.github.com/Oak
MIT License
6 stars 7 forks source link

Better output for rake reset #22

Open alexbeletsky opened 11 years ago

alexbeletsky commented 11 years ago

I accidentally deleted SeedController class and could not figure out why my db schema is not updated.

rake reset has very few information of what's actually wrong. Adding some user friendly information would be really nice.

Btw, I did not found implementation of rake reset would be nice if you point that out.

amirrajan commented 11 years ago

Here are some source references for how the rakefile works: https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/TaskRabbits/Rakefile.rb#L65 https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/TaskRabbits/Rakefile.rb#L85

As your solution grows, you may want to move schema generation it no a separate console app like this: Rake task to generate schema: https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/BorrowedGames/Rakefile.rb#L147 https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/BorrowedGames/Rakefile.rb#L163

Console app: https://github.com/amirrajan/Oak/blob/master/Sample%20Apps/BorrowedGames/BorrowedGames.SchemaGen/Program.cs#L26

alexbeletsky commented 11 years ago

I think I can add some response code analysis and show some suggestions to user of what might went wrong.