* test compilation of all scripts and modules passes * try adding NetSNMP::default_store * try adding NetSNMP::default_store * travis test all branches * make Configuration.pm safe for tests * remove dep * try adding net-snmp * dist: xenial * try building Net-SNMP locally * no need for Try::Tiny * allow test to pass for DPP:p * better testing setup for session cookies * yay! working compile tests for ALL!
20 lines
417 B
Perl
20 lines
417 B
Perl
package App::Netdisco::Worker::Plugin::DumpConfig;
|
|
|
|
use Dancer ':syntax';
|
|
use App::Netdisco::Worker::Plugin;
|
|
use aliased 'App::Netdisco::Worker::Status';
|
|
|
|
use Data::Printer;
|
|
|
|
register_worker({ phase => 'main' }, sub {
|
|
my ($job, $workerconf) = @_;
|
|
my $extra = $job->extra;
|
|
|
|
my $config = config();
|
|
my $dump = ($extra ? $config->{$extra} : $config);
|
|
p $dump;
|
|
return Status->done('Dumped config');
|
|
});
|
|
|
|
true;
|