Skip to content

Commit d5f533a

Browse files
author
Eugene Ponizovsky
committed
Changes in POD
1 parent 5cca089 commit d5f533a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

lib/Config/Processor.pm

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ features
338338
339339
my $config = $config_processor->load( qw( dirs.yml db.json metrics/* ) );
340340
341-
my $another_config = $config_processor->load(
341+
$config = $config_processor->load(
342342
qw( dirs.yml db.json redis.yml mongodb.json metrics/* ),
343343
344344
{ myapp => {
@@ -370,8 +370,10 @@ F<.yaml>, F<.jsn>, F<.json>.
370370
dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
371371
);
372372
373-
my $another_config_processor = Config::Processor->new(
374-
dirs => [ qw( /etc/myapp /home/username/myapp/etc ) ],
373+
$config_processor = Config::Processor->new();
374+
375+
$config_processor = Config::Processor->new(
376+
dirs => [ qw( /etc/myapp /home/username/etc/myapp ) ],
375377
interpolate_variables => 0,
376378
process_directives => 0,
377379
);
@@ -380,7 +382,8 @@ F<.yaml>, F<.jsn>, F<.json>.
380382
381383
=item dirs => \@dirs
382384
383-
List of directories, in which configuration processor will search files.
385+
List of directories, in which configuration processor will search files. If
386+
parameter not specified, current directory will be used.
384387
385388
=item interpolate_variables => $boolean
386389
@@ -403,6 +406,8 @@ Configuration section can be a relative filename, a filename with wildcard
403406
characters or a hash reference. Filenames with wildcard characters is processed
404407
by C<CORE::glob> function and supports the same syntax.
405408
409+
my $config = $config_processor->load( qw( myapp.yml extras/* ), \%hard_config );
410+
406411
=head2 interpolate_variables( [ $boolean ] )
407412
408413
Enables or disables variable interpolation in configurations files.

0 commit comments

Comments
 (0)