Allow default schedule items to be skipped by setting to 'null'
This commit is contained in:
18
lib/App/Netdisco/Worker/Plugin/DumpConfig.pm
Normal file
18
lib/App/Netdisco/Worker/Plugin/DumpConfig.pm
Normal 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;
|
||||
Reference in New Issue
Block a user