sceptre.config package¶
-
class
sceptre.config.
NullHandler
(level=0)[source]¶ Bases:
logging.Handler
Submodules¶
sceptre.config.graph module¶
sceptre.config.graph
This module implements a StackGraph, which is represented as a directed acyclic graph of a Stack’s dependencies.
-
class
sceptre.config.graph.
StackGraph
(stacks)[source]¶ Bases:
object
A Directed Acyclic Graph representing the relationship between a Stack and its dependencies. Responsible for initalising the graph based on a set of Stacks.
sceptre.config.reader module¶
sceptre.config
This module implements a ConfigReader class, which is responsible for reading and constructing Stacks.
-
sceptre.config.reader.
ConfigAttributes
¶ alias of
sceptre.config.reader.Attributes
-
class
sceptre.config.reader.
ConfigReader
(context)[source]¶ Bases:
object
Parses YAML configuration files and produces Stack objects.
Responsible for loading Resolvers and Hook classes and adding them as constructors to the PyYAML parser.
Parameters: context – A SceptreContext. -
construct_stacks
()[source]¶ Traverses the files under the command path. For each file encountered, a Stack is constructed using the correct config. Dependencies are traversed and a final set of Stacks is returned.
Returns: A set of Stacks. Return type: set
-
read
(rel_path, base_config=None)[source]¶ Reads in configuration from one or more YAML files within the Sceptre project folder.
Parameters: Returns: Config read from config files.
Return type:
-
resolve_stacks
(stack_map)[source]¶ Transforms map of Stacks into a set of Stacks, transforms dependencies from a list of Strings (stack names) to a list of Stacks.
Parameters: stack_map – Map of stacks, containing dependencies as list of Strings. Returns: Set of stacks, containing dependencies as list of Stacks. Return type: set Raises: sceptre.exceptions.DependencyDoesNotExistError
-
sceptre.config.strategies module¶
sceptre.config.strategies
This module contains the implementations of the strategies used to merge config attributes.
-
sceptre.config.strategies.
child_wins
(a, b)[source]¶ Always returns the second parameter.
Parameters: Returns: b