aboutsummaryrefslogtreecommitdiff
path: root/rumba/utils.py
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2018-03-29 14:45:58 +0200
committerMarco Capitani <m.capitani@nextworks.it>2018-03-29 14:45:58 +0200
commit6a32967e2de49eaee359f29a482e19b3238f5016 (patch)
tree86a0c5cfc1edd735fb63f37ecd2c7a697d63043c /rumba/utils.py
parent74265717dcb72ee5e6abf54f7b67ba9d2658e0ed (diff)
downloadrumba-6a32967e2de49eaee359f29a482e19b3238f5016.tar.gz
rumba-6a32967e2de49eaee359f29a482e19b3238f5016.zip
storyboard: add/format docstrings
Also: + small docstring fixes in model + docstring fixes in log + log refactoring + other small refactoring + some small documentation fixes
Diffstat (limited to 'rumba/utils.py')
-rw-r--r--rumba/utils.py22
1 files changed, 15 insertions, 7 deletions
diff --git a/rumba/utils.py b/rumba/utils.py
index f6d6c1c..fd12333 100644
--- a/rumba/utils.py
+++ b/rumba/utils.py
@@ -88,19 +88,27 @@ class ExperimentManager(object):
syslogs_strategy=NO_SYSLOGS,
syslogs=None):
"""
- Initializes the ExperimentManager.
-
:param experiment: The experiment name.
+ :type experiment: `rumba.model.Experiment`
:param swap_out_strategy: What action to perform on swap-out.
- :param syslog_strategy: What system and prototype logs to retrieve
+ :param syslogs_strategy: What system and prototype logs to retrieve
before swap-out.
:param syslogs: The location of the syslogs in case of custom syslogs.
+ :type syslogs: `str`
+
+ .. note:: Options for swap_out_strategy are
+
+ - NO_SWAPOUT == 0,
+ - AUTO_SWAPOUT == 1,
+ - PAUSE_SWAPOUT == 2,
+ - PROMPT_SWAPOUT == 3.
- .. note:: Options for swap_out_strategy are NO_SWAPOUT, AUTO_SWAPOUT,
- PAUSE_SWAPOUT, PROMPT_SWAPOUT.
+ .. note:: Options for syslog_strategy are
- .. note:: Options for syslog_strategy are NO_SYSLOGS, DEFAULT_SYSLOGS,
- DMESG_SYSLOGS, CUSTOM_SYSLOGS.
+ - NO_SYSLOGS == 0,
+ - DEFAULT_SYSLOGS == 1,
+ - DMESG_SYSLOGS == 2,
+ - CUSTOM_SYSLOGS == 3.
"""
assert isinstance(experiment, model.Experiment), \
'An experiment instance is required.'