1 package System::Introspector::Report::Config;
4 use Module::Runtime qw( use_module );
6 has config_file => (is => 'ro', required => 1);
7 has config => (is => 'lazy');
12 Config::General->new($self->config_file)->getall,
18 my $reports = $self->config->{report} || {};
21 } sort keys %$reports;
25 my ($self, @override) = @_;
26 my $publish = $self->config->{publish} || {};
28 use_module("System::Introspector::Report::Publish::$_")
29 ->new($publish->{$_} || {});
30 } @override ? @override : sort keys %$publish;