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: list[RunwayDeploymentDefinition] | None = 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: list[RunwayDeploymentDefinition] | None = 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: list[RunwayDeploymentDefinition] | None = 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: list[RunwayDeploymentDefinition] | None = 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: list[RunwayDeploymentDefinition] | None = 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.

test() None[source]

Run tests defined in the config.

Subpackages

Submodules