summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSiddharth Ravikumar <sravik@bgsu.edu>2016-01-05 23:44:23 -0500
committerSiddharth Ravikumar <sravik@bgsu.edu>2016-01-05 23:44:23 -0500
commita996f9356fff0923b775e21733bd35cdf466d75a (patch)
tree2b8240b11bb98d9433d87ab28abc85d2e27a422b
parent3ed3065990d297c5debf927210f46f0f7e1f0043 (diff)
docstrings in combox.cbox are sphinx friendly now.
-rw-r--r--combox/cbox.py21
1 files changed, 17 insertions, 4 deletions
diff --git a/combox/cbox.py b/combox/cbox.py
index e8d08a3..2e29f70 100644
--- a/combox/cbox.py
+++ b/combox/cbox.py
@@ -40,8 +40,20 @@ from combox.log import log_i, log_e
## http://pythonhosted.org/watchdog/quickstart.html#quickstart
def run_cb(config):
- """
- Runs combox.
+ """Runs combox.
+
+ - Creates an instance of :class:`.ComboxDirMonitor` to monitor the
+ combox directory.
+
+ - Creates an instance of :class:`.NodeDirMonitor` for each node
+ directory.
+
+ Exits on Ctrt-C.
+
+ :param dict config:
+ A dictionary that contains configuration information about
+ combox.
+
"""
db_lock = Lock()
monitor_lock = Lock()
@@ -87,9 +99,10 @@ def run_cb(config):
log_i("combox exiting. Bye!")
+
def main():
- """
- Main functions, parses args and calls run_cb()
+ """Parses args; starts combox configuration if necessary; starts combox.
+
"""
parser = ArgumentParser()
parser.add_argument("-t", "--test",