This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2014-01-20 01:08:03 +01:00
|
|
|
use lib '../../';
|
|
|
|
use app::zone::rndc_interface;
|
2014-05-08 00:45:12 +02:00
|
|
|
use app::zone::knot_interface;
|
|
|
|
use app::zone::nsdc_interface;
|
2014-01-20 01:08:03 +01:00
|
|
|
package app::zone::interface;
|
|
|
|
use Moose;
|
|
|
|
|
|
|
|
sub get_interface {
|
2014-05-08 00:45:12 +02:00
|
|
|
my ($self, $type, $data) = @_;
|
|
|
|
return 1, app::zone::rndc_interface->new(data => $data) if $type eq 'rndc';
|
|
|
|
return 1, app::zone::knot_interface->new(data => $data) if $type eq 'knot';
|
|
|
|
return 1, app::zone::nsdc_interface->new(data => $data) if $type eq 'nsdc';
|
|
|
|
return 0;
|
2014-01-20 01:08:03 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
1;
|