[Nitro] Simpler configuration method?

George Moschovitis george.moschovitis at gmail.com
Mon Feb 5 13:29:52 EST 2007


Thanks for helping me with this. My limited knowledge of the English
language prohibits me from explaining the inefficiencies of the current
implementation with such a nice example.

-g.

On 2/5/07, Kirk Haines <wyhaines at gmail.com> wrote:
>
> > I still am unconvinced that there is a need to configure anything
> > before it is instantiated (in the case of objects) or declared (in the
> > case of classes).  Can we get a couple of examples?
>
> Here's the use case:
>
> You have a web site with public content and private content.  The
> private content is by login only.  Your config file contains all of
> the db connection information as well as all of your web app config
> information.
>
> You are asked to write a script which checks the database for accounts
> which have been approved, but which haven't been confirmed by the
> subscriber, and which have been sitting for more than 96 hours.  You
> would like to just reuse your main config file.  No sense duplicating
> the db connect info elsewhere, right?
>
> But you can't because you aren't starting the entire application
> environment -- you are just using Og, so none of the Nitro specific
> stuff that your config file has configuration for exists.
>
>
> Kirk Haines
> _______________________________________________
> Nitro-general mailing list
> Nitro-general at rubyforge.org
> http://rubyforge.org/mailman/listinfo/nitro-general
>



-- 
http://blog.gmosx.com
http://cull.gr
http://www.joy.gr
http://nitroproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/nitro-general/attachments/20070205/eef50ba3/attachment-0001.html 


More information about the Nitro-general mailing list