runway.env_mgr package

Base module for environment managers.

class runway.env_mgr.EnvManager(bin_name, dir_name, path=None)[source]

Bases: object

Base environment manager class.

bin

Path to the binary of the current version.

Type

Optional[str]

current_version

The current binary version being used.

Type

Optional[str]

env_dir_name

Name of the directory within the users home directory where binary versions will be stored.

Type

str

path

The current working directory.

Type

Path

Initialize class.

Parameters
  • bin_name (str) – Name of the binary file (e.g. kubectl)

  • dir_name (str) – Name of the directory within the users home directory where binary versions will be stored.

  • path (Optional[Path]) – The current working directory.

property bin

Path to the version binary.

Returns

Path

command_suffix

Decorator for creating cached properties.

A property that is only computed once per instance and then replaces itself with an ordinary attribute. Deleting the attribute resets the property. Source: https://github.com/bottlepy/bottle/commit/fa7733e075da0d790d809aa3d2f53071897e6f76

env_dir

Decorator for creating cached properties.

A property that is only computed once per instance and then replaces itself with an ordinary attribute. Deleting the attribute resets the property. Source: https://github.com/bottlepy/bottle/commit/fa7733e075da0d790d809aa3d2f53071897e6f76

versions_dir

Decorator for creating cached properties.

A property that is only computed once per instance and then replaces itself with an ordinary attribute. Deleting the attribute resets the property. Source: https://github.com/bottlepy/bottle/commit/fa7733e075da0d790d809aa3d2f53071897e6f76

runway.env_mgr.handle_bin_download_error(exc, name)[source]

Give user info about their failed download.