python3-cyberfusion-queue-support 1.4__tar.gz → 1.5__tar.gz
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.
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/PKG-INFO +2 -2
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/pyproject.toml +1 -1
- python3_cyberfusion_queue_support-1.5/src/cyberfusion/QueueSupport/items/systemd_daemon_reload.py +48 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/outcomes.py +21 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/python3_cyberfusion_queue_support.egg-info/PKG-INFO +2 -2
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/python3_cyberfusion_queue_support.egg-info/SOURCES.txt +1 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/README.md +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/setup.cfg +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/__init__.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/exceptions/__init__.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/interfaces.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/__init__.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/chmod.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/chown.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/command.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/copy.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/mkdir.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/move.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/rmtree.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/systemd_tmp_files_create.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/systemd_unit_disable.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/systemd_unit_enable.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/systemd_unit_reload.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/systemd_unit_restart.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/systemd_unit_start.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/systemd_unit_stop.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/items/unlink.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/cyberfusion/QueueSupport/utilities.py +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/python3_cyberfusion_queue_support.egg-info/dependency_links.txt +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/python3_cyberfusion_queue_support.egg-info/requires.txt +0 -0
- {python3_cyberfusion_queue_support-1.4 → python3_cyberfusion_queue_support-1.5}/src/python3_cyberfusion_queue_support.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: python3-cyberfusion-queue-support
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5
|
|
4
4
|
Summary: Library to queue actions.
|
|
5
5
|
Author-email: Cyberfusion <support@cyberfusion.io>
|
|
6
6
|
Project-URL: Source, https://github.com/CyberfusionIO/python3-cyberfusion-queue-support
|
python3_cyberfusion_queue_support-1.5/src/cyberfusion/QueueSupport/items/systemd_daemon_reload.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Item."""
|
|
2
|
+
|
|
3
|
+
import logging
|
|
4
|
+
from typing import List, Optional
|
|
5
|
+
|
|
6
|
+
from cyberfusion.SystemdSupport.manager import SystemdManager
|
|
7
|
+
|
|
8
|
+
from cyberfusion.QueueSupport.items import _Item
|
|
9
|
+
from cyberfusion.QueueSupport.outcomes import (
|
|
10
|
+
SystemdDaemonReloadItemReloadOutcome,
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
logger = logging.getLogger(__name__)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
class SystemdDaemonReloadItem(_Item):
|
|
17
|
+
"""Represents item."""
|
|
18
|
+
|
|
19
|
+
def __init__(
|
|
20
|
+
self,
|
|
21
|
+
*,
|
|
22
|
+
reference: Optional[str] = None,
|
|
23
|
+
hide_outcomes: bool = False,
|
|
24
|
+
) -> None:
|
|
25
|
+
"""Set attributes."""
|
|
26
|
+
self._reference = reference
|
|
27
|
+
self._hide_outcomes = hide_outcomes
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def outcomes(self) -> List[SystemdDaemonReloadItemReloadOutcome]:
|
|
31
|
+
"""Get outcomes of item."""
|
|
32
|
+
outcomes = []
|
|
33
|
+
|
|
34
|
+
outcomes.append(SystemdDaemonReloadItemReloadOutcome())
|
|
35
|
+
|
|
36
|
+
return outcomes
|
|
37
|
+
|
|
38
|
+
def fulfill(self) -> None:
|
|
39
|
+
"""Fulfill outcomes."""
|
|
40
|
+
for _ in self.outcomes:
|
|
41
|
+
SystemdManager.daemon_reload()
|
|
42
|
+
|
|
43
|
+
def __eq__(self, other: object) -> bool:
|
|
44
|
+
"""Get equality based on attributes."""
|
|
45
|
+
if not isinstance(other, SystemdDaemonReloadItem):
|
|
46
|
+
return False
|
|
47
|
+
|
|
48
|
+
return True
|
|
@@ -248,6 +248,27 @@ class SystemdUnitEnableItemEnableOutcome(OutcomeInterface):
|
|
|
248
248
|
return other.unit.name == self.unit.name
|
|
249
249
|
|
|
250
250
|
|
|
251
|
+
class SystemdDaemonReloadItemReloadOutcome(OutcomeInterface):
|
|
252
|
+
"""Represents outcome."""
|
|
253
|
+
|
|
254
|
+
def __init__(
|
|
255
|
+
self,
|
|
256
|
+
) -> None:
|
|
257
|
+
"""Set attributes."""
|
|
258
|
+
pass
|
|
259
|
+
|
|
260
|
+
def __str__(self) -> str:
|
|
261
|
+
"""Get human-readable string."""
|
|
262
|
+
return "Reload daemon"
|
|
263
|
+
|
|
264
|
+
def __eq__(self, other: object) -> bool:
|
|
265
|
+
"""Get equality based on attributes."""
|
|
266
|
+
if not isinstance(other, SystemdDaemonReloadItemReloadOutcome):
|
|
267
|
+
return False
|
|
268
|
+
|
|
269
|
+
return True
|
|
270
|
+
|
|
271
|
+
|
|
251
272
|
class SystemdUnitStartItemStartOutcome(OutcomeInterface):
|
|
252
273
|
"""Represents outcome."""
|
|
253
274
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: python3-cyberfusion-queue-support
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5
|
|
4
4
|
Summary: Library to queue actions.
|
|
5
5
|
Author-email: Cyberfusion <support@cyberfusion.io>
|
|
6
6
|
Project-URL: Source, https://github.com/CyberfusionIO/python3-cyberfusion-queue-support
|
|
@@ -14,6 +14,7 @@ src/cyberfusion/QueueSupport/items/copy.py
|
|
|
14
14
|
src/cyberfusion/QueueSupport/items/mkdir.py
|
|
15
15
|
src/cyberfusion/QueueSupport/items/move.py
|
|
16
16
|
src/cyberfusion/QueueSupport/items/rmtree.py
|
|
17
|
+
src/cyberfusion/QueueSupport/items/systemd_daemon_reload.py
|
|
17
18
|
src/cyberfusion/QueueSupport/items/systemd_tmp_files_create.py
|
|
18
19
|
src/cyberfusion/QueueSupport/items/systemd_unit_disable.py
|
|
19
20
|
src/cyberfusion/QueueSupport/items/systemd_unit_enable.py
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|