ominfra 0.0.0.dev76__py3-none-any.whl → 0.0.0.dev78__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ominfra/clouds/aws/auth.py +97 -92
- ominfra/clouds/aws/dataclasses.py +149 -0
- ominfra/clouds/aws/journald2aws/__init__.py +0 -0
- ominfra/clouds/aws/journald2aws/journald.py +67 -0
- ominfra/clouds/aws/logs.py +173 -0
- ominfra/deploy/_executor.py +17 -0
- ominfra/pyremote/_runcommands.py +17 -0
- ominfra/scripts/__init__.py +0 -0
- ominfra/scripts/supervisor.py +3323 -0
- ominfra/supervisor/__init__.py +1 -0
- ominfra/supervisor/__main__.py +4 -0
- ominfra/supervisor/compat.py +208 -0
- ominfra/supervisor/configs.py +110 -0
- ominfra/supervisor/context.py +405 -0
- ominfra/supervisor/datatypes.py +171 -0
- ominfra/supervisor/dispatchers.py +307 -0
- ominfra/supervisor/events.py +304 -0
- ominfra/supervisor/exceptions.py +22 -0
- ominfra/supervisor/poller.py +232 -0
- ominfra/supervisor/process.py +782 -0
- ominfra/supervisor/states.py +78 -0
- ominfra/supervisor/supervisor.py +390 -0
- ominfra/supervisor/types.py +49 -0
- {ominfra-0.0.0.dev76.dist-info → ominfra-0.0.0.dev78.dist-info}/METADATA +3 -3
- {ominfra-0.0.0.dev76.dist-info → ominfra-0.0.0.dev78.dist-info}/RECORD +29 -9
- {ominfra-0.0.0.dev76.dist-info → ominfra-0.0.0.dev78.dist-info}/LICENSE +0 -0
- {ominfra-0.0.0.dev76.dist-info → ominfra-0.0.0.dev78.dist-info}/WHEEL +0 -0
- {ominfra-0.0.0.dev76.dist-info → ominfra-0.0.0.dev78.dist-info}/entry_points.txt +0 -0
- {ominfra-0.0.0.dev76.dist-info → ominfra-0.0.0.dev78.dist-info}/top_level.txt +0 -0
ominfra/pyremote/_runcommands.py
CHANGED
@@ -251,6 +251,23 @@ def check_state(v: bool, msg: str = 'Illegal state') -> None:
|
|
251
251
|
raise ValueError(msg)
|
252
252
|
|
253
253
|
|
254
|
+
def check_equal(l: T, r: T) -> T:
|
255
|
+
if l != r:
|
256
|
+
raise ValueError(l, r)
|
257
|
+
return l
|
258
|
+
|
259
|
+
|
260
|
+
def check_not_equal(l: T, r: T) -> T:
|
261
|
+
if l == r:
|
262
|
+
raise ValueError(l, r)
|
263
|
+
return l
|
264
|
+
|
265
|
+
|
266
|
+
def check_single(vs: ta.Iterable[T]) -> T:
|
267
|
+
[v] = vs
|
268
|
+
return v
|
269
|
+
|
270
|
+
|
254
271
|
########################################
|
255
272
|
# ../../../omlish/lite/json.py
|
256
273
|
|
File without changes
|