mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Implement manager.processors for configuring global processors
This commit is contained in:
@@ -131,3 +131,13 @@ class TestYamlProvider(YamlProvider):
|
||||
|
||||
class TestBaseProcessor(BaseProcessor):
|
||||
pass
|
||||
|
||||
|
||||
class CountingProcessor(BaseProcessor):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.count = 0
|
||||
|
||||
def process_source_zone(self, zone, *args, **kwargs):
|
||||
self.count += len(zone.records)
|
||||
return zone
|
||||
|
||||
Reference in New Issue
Block a user