2008/9/29 Ben Burkert <[EMAIL PROTECTED]>:
> perhaps the rake and test environments can be modified to use Michael's
> "fast boot"?

I implemented fast boot approach on my local branch yesterday. The
problem I found is that we need a separate method
for it. I tried to modify start_environment first, but it's a bit
tricky: for instance, Merb core spec suite needs server boot
sometimes,
and it uses start_environment. So we cannot make assumption on what
partial boot should look like.

Another approach I tried (and it worked) is to add options to
Merb#start so it can figure out you don't want to run the server.
No running server makes everything faster.

In case of merb-gen you can see that it only needs to boot your app to
the point when it can read config file to figure out your ORM,
template engine and what you test with, that is, defaults.

My ideas are:

(a) Add optional :no_server_boot to Merb#start and modify generated spec helper.
(b) Add some new method that only runs certain bootloaders.
(c) Add :exclude and :only options to Merb::BootLoader.run.

We can implement all of those actually. What do you think?
-- 
MK

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to