runway.core package
Core Runway API.
- class runway.core.Runway[source]
Bases:
object
Runway’s core functionality.
- __init__(config: runway.config.RunwayConfig, context: runway.context.RunwayContext) None [source]
Instantiate class.
- Parameters
config – Runway config.
context – Runway context.
- deploy(deployments: Optional[List[RunwayDeploymentDefinition]] = None) None [source]
Deploy action.
- Parameters
deployments – List of deployments to run. If not provided, all deployments in the config will be run.
- destroy(deployments: Optional[List[RunwayDeploymentDefinition]] = None) None [source]
Destroy action.
- Parameters
deployments – List of deployments to run. If not provided, all deployments in the config will be run in reverse.
- get_env_vars(deployments: Optional[List[RunwayDeploymentDefinition]] = None) Dict[str, Any] [source]
Get env_vars defined in the config.
- Parameters
deployments – List of deployments to get env_vars from.
- Returns
Resolved env_vars from the deployments.
- init(deployments: Optional[List[RunwayDeploymentDefinition]] = None) None [source]
Init action.
- Parameters
deployments – List of deployments to run. If not provided, all deployments in the config will be run.
- plan(deployments: Optional[List[RunwayDeploymentDefinition]] = None) None [source]
Plan action.
- Parameters
deployments – List of deployments to run. If not provided, all deployments in the config will be run.
- static reverse_deployments(deployments: List[RunwayDeploymentDefinition]) List[RunwayDeploymentDefinition] [source]
Reverse deployments and the modules within them.
- Parameters
deployments – List of deployments to reverse.
- Returns
Deployments and modules in reverse order.
- __new__(**kwargs)