chadadavis / sbglib

Automatically exported from code.google.com/p/sbglib
0 stars 0 forks source link

Role::Configurable #152

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
setup defaults.ini and use the -import option of Config::IniFiles
This allows config.ini to override anything in defaults.ini
my $defaults = new Config::IniFile(-file=>"defaults.ini");
my $config = new Config::IniFile(-import=>$defaults, -file=>"config.ini");
And then merge with any command line options.

Original issue reported on code.google.com by chad.a.davis@gmail.com on 26 Jul 2010 at 12:40

GoogleCodeExporter commented 9 years ago
Also for DB connection strings

Original comment by chad.a.davis@gmail.com on 26 Jul 2010 at 1:02

GoogleCodeExporter commented 9 years ago
Consider a Config::Any interface, with Config::IniFiles underneath. 

Original comment by chad.a.davis@gmail.com on 21 Aug 2010 at 11:13