changeset 32:630aaf102ce8

foo
author Jeff Hammel <jhammel@mozilla.com>
date Sun, 13 Oct 2013 12:28:25 -0700
parents 3edb91cfd3c1
children 9a76064ea527
files commitwatcher/poller.py
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/commitwatcher/poller.py	Sun Oct 13 12:28:25 2013 -0700
@@ -0,0 +1,21 @@
+"""
+poller/daemon-like service to continuously check the repo
+"""
+
+import time
+
+class CommitPoller(object):
+
+    def __init__(self, fetcher, period=300):
+        self.fetcher = fetcher
+        self.period = period
+
+    def poll(self):
+        """poll"""
+        
+
+    def start(self):
+        """poll forever"""
+        while True:
+
+    __call__ = start