Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
On Fri, Mar 09, 2007 at 11:16:00AM -0400, Brian Cassidy wrote: > http://dev.catalystframework.org/browser/trunk/Catalyst-Runtime/lib/Catalyst/Utils.pm#L263 > > for reference, the config() routine: > > http://dev.catalystframework.org/browser/trunk/Catalyst-Runtime/lib/Catalyst/Component.pm#L88 O

Re: [Catalyst] Merging configs

2007-03-09 Thread Brian Cassidy
Bill Moseley wrote: On Thu, Mar 08, 2007 at 05:25:55PM -0500, Christopher H. Laco wrote: Catalyst config support a 'local' config file in addition to the regular one. I'm not sure on the exact file name, but I think it's myapp_local.yml That's also a shallow merge, IIRC. It just calls $c->con

Re: [Catalyst] Merging configs

2007-03-09 Thread Bill Moseley
On Thu, Mar 08, 2007 at 05:25:55PM -0500, Christopher H. Laco wrote: > Catalyst config support a 'local' config file in addition to the regular > one. I'm not sure on the exact file name, but I think it's myapp_local.yml That's also a shallow merge, IIRC. It just calls $c->config with the local c

RE: [Catalyst] Merging configs

2007-03-09 Thread Carl Vincent
>-Original Message- >From: Christopher H. Laco [mailto:[EMAIL PROTECTED] >Sent: 08 March 2007 22:26 >Subject: Re: [Catalyst] Merging configs > >Bill Moseley wrote: >> My YAML file has sections that are specific to what server >> is running. That is, I have:

Re: [Catalyst] Merging configs

2007-03-08 Thread Christopher H. Laco
Bill Moseley wrote: > My YAML file has sections that are specific to what server > is running. That is, I have: > > # Default config > foo: bar > name: foo > > servers: > > staging: > config: > foo: baz > ... > > devel: > config: > ..

[Catalyst] Merging configs

2007-03-08 Thread Bill Moseley
My YAML file has sections that are specific to what server is running. That is, I have: # Default config foo: bar name: foo servers: staging: config: foo: baz ... devel: config: ... production: config: ... S