rename Discover.pm to Device.pm
This commit is contained in:
@@ -49,7 +49,7 @@ if (!length $action) {
|
|||||||
{
|
{
|
||||||
package MyWorker;
|
package MyWorker;
|
||||||
use Moo;
|
use Moo;
|
||||||
with 'App::Netdisco::Daemon::Worker::Poller::Discover';
|
with 'App::Netdisco::Daemon::Worker::Poller::Device';
|
||||||
}
|
}
|
||||||
my $worker = MyWorker->new();
|
my $worker = MyWorker->new();
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use Role::Tiny;
|
|||||||
use namespace::clean;
|
use namespace::clean;
|
||||||
|
|
||||||
# add dispatch methods for poller tasks
|
# add dispatch methods for poller tasks
|
||||||
with 'App::Netdisco::Daemon::Worker::Poller::Discover';
|
with 'App::Netdisco::Daemon::Worker::Poller::Device';
|
||||||
|
|
||||||
sub worker_body {
|
sub worker_body {
|
||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package App::Netdisco::Daemon::Worker::Poller::Discover;
|
package App::Netdisco::Daemon::Worker::Poller::Device;
|
||||||
|
|
||||||
use Dancer qw/:moose :syntax :script/;
|
use Dancer qw/:moose :syntax :script/;
|
||||||
use Dancer::Plugin::DBIC 'schema';
|
use Dancer::Plugin::DBIC 'schema';
|
||||||
Reference in New Issue
Block a user