pyinfra.context module¶
The ContextObject and ContextManager provide context specific variables that are imported and used throughout pyinfra and end user deploy code (CLI mode).
These variables always represent the current executing pyinfra context.
-
class
pyinfra.context.
ContextManager
(key, context_cls)¶ Bases:
object
-
get
()¶
-
isset
()¶
-
reset
()¶
-
set
(module)¶
-
set_base
(module)¶
-
use
(module)¶
-
-
class
pyinfra.context.
ContextObject
¶ Bases:
object
-
class
pyinfra.context.
LocalContextObject
¶ Bases:
ContextObject
-
class
pyinfra.context.
container
¶ Bases:
object
-
pyinfra.context.
init_base_classes
() None ¶