Allow default schedule items to be skipped by setting to 'null'

This commit is contained in:
Oliver Gorwits
2017-12-21 20:03:10 +00:00
parent 7f8e3edfff
commit 9c60727c9f
5 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,18 @@
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();
p ($extra ? $config->{$extra} : $config);
return Status->done('Dumped config');
});
true;