Config-Abstraction
view release on metacpan or search on metacpan
use strict;
use warnings;
use Test::Most;
use File::Spec;
use File::Slurp qw(write_file);
use Test::TempDir::Tiny;
BEGIN { use_ok('Config::Abstraction') }
local @ARGV = ('--APP_foo=baz');
my $test_dir = tempdir();
write_file("$test_dir/base.yaml", <<'YAML');
---
foo: bar
YAML
my $config = Config::Abstraction->new(
config_dirs => [$test_dir],
env_prefix => 'APP_',
( run in 0.439 second using v1.01-cache-2.11-cpan-4face438c0f )