X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FPlugin%2FConfigLoader.pm;h=c1618e3bcfa3b435fe7bfd7041015dfa47a65017;hb=6a5c6f1945285d8987373511e4b2e8818ba137e1;hp=5240417c92ca00511a8a1ef9c126ebcf5fc66923;hpb=011d99b9ad5b15dfad7e37d21f07134a2237e10c;p=catagits%2FCatalyst-Plugin-ConfigLoader.git diff --git a/lib/Catalyst/Plugin/ConfigLoader.pm b/lib/Catalyst/Plugin/ConfigLoader.pm index 5240417..c1618e3 100644 --- a/lib/Catalyst/Plugin/ConfigLoader.pm +++ b/lib/Catalyst/Plugin/ConfigLoader.pm @@ -53,7 +53,9 @@ See L's C parameter for more information. To support the distinction between development and production environments, this module will also attemp to load a local config (e.g. myapp_local.yaml) -which will override any duplicate settings. +which will override any duplicate settings. See +L +for details on how this is configured. =head1 METHODS @@ -194,7 +196,8 @@ sub get_config_path { =head2 get_config_local_suffix Determines the suffix of files used to override the main config. By default -this value is C, but it can be specified in the following order of preference: +this value is C, which will load C. The suffix can +be specified in the following order of preference: =over 4 @@ -206,6 +209,13 @@ this value is C, but it can be specified in the following order of prefer =back +The first one of these values found replaces the default of C in the +name of the local config file to be loaded. + +For example, if C< $ENV{ MYAPP_CONFIG_LOCAL_SUFFIX }> is set to C, +ConfigLoader will try and load C instead of +C. + =cut sub get_config_local_suffix {