App-Maisha
view release on metacpan or search on metacpan
lib/App/Maisha.pm view on Meta::CPAN
if ($config && ! ref $config) {
my $filename = $config;
# In the future, we may support multiple configs, but for now
# just load a single file via Config::Any
my $list = Config::Any->load_files( { files => [ $filename ], use_ext => 1 } );
($config) = $list->[0]->{$filename};
}
croak("Could not load configuration file") if(!$config);
croak("Maisha expectes a config file that can be decoded to a HASH") if(ref $config ne 'HASH');
# some systems use a broken pager, so force the internal parser to be used
$self->{pager} = $ENV{PAGER};
$ENV{PAGER} = '';
return $config;
}
sub setup {
my $self = shift;
( run in 0.256 second using v1.01-cache-2.11-cpan-26ccb49234f )