[Catalyst-commits] r8007 - in trunk/Catalyst-Plugin-ConfigLoader: . lib/Catalyst/Plugin/ConfigLoader

bricas at dev.catalyst.perl.org bricas at dev.catalyst.perl.org
Thu Jun 26 14:55:00 BST 2008


Author: bricas
Date: 2008-06-26 14:54:59 +0100 (Thu, 26 Jun 2008)
New Revision: 8007

Modified:
   trunk/Catalyst-Plugin-ConfigLoader/Changes
   trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod
Log:
add a cookbook entry for converting an existing config to Config::General format

Modified: trunk/Catalyst-Plugin-ConfigLoader/Changes
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/Changes	2008-06-26 06:48:13 UTC (rev 8006)
+++ trunk/Catalyst-Plugin-ConfigLoader/Changes	2008-06-26 13:54:59 UTC (rev 8007)
@@ -1,6 +1,8 @@
 Revision history for Perl extension Catalyst::Plugin::ConfigLoader.
 
 0.21  XXXX
+    - add a cookbook entry for converting an existing config to
+      Config::General format
     - fix up pod to explain in more detail how to pass options to each
       driver class (Sergio Salvi)
 

Modified: trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod
===================================================================
--- trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod	2008-06-26 06:48:13 UTC (rev 8006)
+++ trunk/Catalyst-Plugin-ConfigLoader/lib/Catalyst/Plugin/ConfigLoader/Manual.pod	2008-06-26 13:54:59 UTC (rev 8007)
@@ -168,5 +168,13 @@
         - ''
         - AutoCommit: 1 
 
+=head2 Converting your existing config to Config::General format
+
+As of L<Catalyst::Devel> 1.07, a newly created application will use
+L<Config::General> for configuration. If you wish to convert your existing
+config, run the following one-liner (replacing MyApp with your app's name):
+
+    perl -Ilib -MMyApp -MConfig::General -e 'Config::General->new->save_file("myapp.conf", MyApp->config);'
+
 =cut
 




More information about the Catalyst-commits mailing list