@@ -4,7 +4,7 @@ use 5.008000;
44use strict;
55use warnings;
66
7- our $VERSION = ' 0.15_01 ' ;
7+ our $VERSION = ' 0.16 ' ;
88
99use File::Spec;
1010use YAML::XS qw( LoadFile ) ;
@@ -344,10 +344,10 @@ features
344344 use Config::Processor;
345345
346346 my $config_processor = Config::Processor->new(
347- dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
347+ dirs => [qw( /etc/myapp /home/username/etc/myapp )]
348348 );
349349
350- my $config = $config_processor->load( qw( dirs.yml db.json metrics/* ) );
350+ my $config = $config_processor->load(qw( dirs.yml db.json metrics/* ));
351351
352352 $config = $config_processor->load(
353353 qw( dirs.yml db.json redis.yml mongodb.json metrics/* ),
@@ -378,13 +378,14 @@ F<.yaml>, F<.jsn>, F<.json>.
378378=head2 new( %params )
379379
380380 my $config_processor = Config::Processor->new(
381- dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
381+ dirs => [qw( /etc/myapp /home/username/etc/myapp )],
382+ export_env => 1,
382383 );
383384
384- $config_processor = Config::Processor->new() ;
385+ $config_processor = Config::Processor->new;
385386
386387 $config_processor = Config::Processor->new(
387- dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
388+ dirs => [qw( /etc/myapp /home/username/etc/myapp )],
388389 interpolate_variables => 0,
389390 process_directives => 0,
390391 );
@@ -406,11 +407,11 @@ Enabled by default.
406407Enables or disables directive processing in configurations files.
407408Enabled by default.
408409
409- =item export_env
410+ =item export_env => $boolean
410411
411412Enables or disables environment variables exporting to configuration tree.
412413If enabled, environment variables can be accessed by the key C<ENV > from the
413- tree and can be interpolated in other configuration parameters.
414+ configuration tree and can be interpolated into other configuration parameters.
414415
415416Disabled by default.
416417
0 commit comments