runway.cfngin.hooks.utils module¶
Hook utils.
-
class
runway.cfngin.hooks.utils.
BlankBlueprint
(name, context, mappings=None, description=None)[source]¶ Bases:
runway.cfngin.blueprints.base.Blueprint
Blueprint that can be built programatically.
Instantiate class.
- Parameters
name (str) – A name for the blueprint.
context (
runway.cfngin.context.Context
) – Context the blueprint is being executed under.mappings (dict, optional) – CloudFormation Mappings to be used in the template.
description (str) – Used to describe the resulting CloudFormation template.
-
runway.cfngin.hooks.utils.
handle_hooks
(stage, hooks, provider, context)[source]¶ Handle pre/post_build hooks.
These are pieces of code that we want to run before/after the builder builds the stacks.
- Parameters
stage (str) – The current stage (pre_run, post_run, etc).
hooks (List[
runway.cfngin.config.Hook
]) – Hooks to execute.provider (
runway.cfngin.providers.base.BaseProvider
) – Provider instance.context (
runway.cfngin.context.Context
) – Context instance.