mirror of
				https://github.com/github/octodns.git
				synced 2024-05-11 05:55:00 +00:00 
			
		
		
		
	docstrings for each provider showing config
This commit is contained in:
		@@ -17,13 +17,13 @@ from ..zone import DuplicateRecordException, SubzoneRecordException
 | 
			
		||||
from .base import BaseSource
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TinyDnsSource(BaseSource):
 | 
			
		||||
class TinyDnsBaseSource(BaseSource):
 | 
			
		||||
    SUPPORTS_GEO = False
 | 
			
		||||
 | 
			
		||||
    split_re = re.compile(r':+')
 | 
			
		||||
 | 
			
		||||
    def __init__(self, id, default_ttl=3600):
 | 
			
		||||
        super(TinyDnsSource, self).__init__(id)
 | 
			
		||||
        super(TinyDnsBaseSource, self).__init__(id)
 | 
			
		||||
        self.default_ttl = default_ttl
 | 
			
		||||
 | 
			
		||||
    def _data_for_A(self, _type, records):
 | 
			
		||||
@@ -177,10 +177,18 @@ class TinyDnsSource(BaseSource):
 | 
			
		||||
                                  'skipping'.format(addr))
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class TinyDnsFileSource(TinyDnsSource):
 | 
			
		||||
class TinyDnsFileSource(TinyDnsBaseSource):
 | 
			
		||||
    '''
 | 
			
		||||
    A basic TinyDNS zonefile importer created to import legacy data.
 | 
			
		||||
 | 
			
		||||
    tinydns:
 | 
			
		||||
        class: octodns.source.tinydns.TinyDnsFileSource
 | 
			
		||||
        # The location of the TinyDNS zone files
 | 
			
		||||
        directory: ./zones
 | 
			
		||||
        # The ttl to use for records when not specified in the data
 | 
			
		||||
        # (optional, default 3600)
 | 
			
		||||
        default_ttl: 3600
 | 
			
		||||
 | 
			
		||||
    NOTE: timestamps & lo fields are ignored if present.
 | 
			
		||||
    '''
 | 
			
		||||
    def __init__(self, id, directory, default_ttl=3600):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user