add a cookbook entry for converting an existing config to Config::General format
Brian Cassidy [Thu, 26 Jun 2008 13:54:59 +0000 (13:54 +0000)]
Changes
lib/Catalyst/Plugin/ConfigLoader/Manual.pod

diff --git a/Changes b/Changes
index 65bdb36..11a1917 100644 (file)
--- a/Changes
+++ b/Changes
@@ -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)
 
index 7464128..4d4f9bd 100644 (file)
@@ -168,5 +168,13 @@ Catalyst::Plugin::ConfigLoader::Manual - Guide to using the ConfigLoader plugin
         - ''
         - 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