reconfigure.includers¶
-
class
reconfigure.includers.BaseIncluder(parser=None, content_map={})[source]¶ A base includer class
Parameters: - parser – Parser instance that was used to parse the root config file
- content_map – a dict that overrides config content for specific paths
-
compose(origin, tree)[source]¶ Should locate the include nodes in the Node tree, replace them with
reconfigure.nodes.IncludeNode, parse the specified include files and append them to tree, with correct nodeoriginattributes
-
class
reconfigure.includers.AutoIncluder(parser=None, content_map={})[source]¶ This base includer automatically walks the node tree and loads the include files from
IncludeNode.filesproperties.filesis supposed to contain absolute path, relative path or a shell wildcard.-
is_include(node)[source]¶ Should return whether the node is an include node and return file pattern glob if it is
-
remove_include(node)[source]¶ Shoud transform
reconfigure.nodes.IncludeNodeinto a normal Node to be stringified into the file
-