1
0
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:
Ross McFarland
2022-09-12 15:28:51 -07:00
parent b4792707f8
commit 0f57e6c63e
4 changed files with 28 additions and 2 deletions

View File

@@ -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