runway.core package

Core Runway API.

class runway.core.Runway(config, context)[source]

Bases: object

Runway’s core functionality.

Instantiate class.

Parameters
  • config – Runway config.

  • context – Runway context.

deploy(deployments=None)[source]

Deploy action.

Parameters

deployments – List of deployments to run. If not provided, all deployments in the config will be run.

destroy(deployments=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=None)[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.

plan(deployments=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)[source]

Reverse deployments and the modules within them.

Parameters

deployments – List of deployments to reverse.

Returns

Deployments and modules in reverse order.

test()[source]

Run tests defined in the config.