@@ -4,7 +4,7 @@ use 5.008000;
4
4
use strict;
5
5
use warnings;
6
6
7
- our $VERSION = ' 0.15_01 ' ;
7
+ our $VERSION = ' 0.16 ' ;
8
8
9
9
use File::Spec;
10
10
use YAML::XS qw( LoadFile ) ;
@@ -344,10 +344,10 @@ features
344
344
use Config::Processor;
345
345
346
346
my $config_processor = Config::Processor->new(
347
- dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
347
+ dirs => [qw( /etc/myapp /home/username/etc/myapp )]
348
348
);
349
349
350
- my $config = $config_processor->load( qw( dirs.yml db.json metrics/* ) );
350
+ my $config = $config_processor->load(qw( dirs.yml db.json metrics/* ));
351
351
352
352
$config = $config_processor->load(
353
353
qw( dirs.yml db.json redis.yml mongodb.json metrics/* ),
@@ -378,13 +378,14 @@ F<.yaml>, F<.jsn>, F<.json>.
378
378
=head2 new( %params )
379
379
380
380
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,
382
383
);
383
384
384
- $config_processor = Config::Processor->new() ;
385
+ $config_processor = Config::Processor->new;
385
386
386
387
$config_processor = Config::Processor->new(
387
- dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
388
+ dirs => [qw( /etc/myapp /home/username/etc/myapp )],
388
389
interpolate_variables => 0,
389
390
process_directives => 0,
390
391
);
@@ -406,11 +407,11 @@ Enabled by default.
406
407
Enables or disables directive processing in configurations files.
407
408
Enabled by default.
408
409
409
- =item export_env
410
+ =item export_env => $boolean
410
411
411
412
Enables or disables environment variables exporting to configuration tree.
412
413
If 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.
414
415
415
416
Disabled by default.
416
417
0 commit comments