diff commitwatcher/store.py @ 2:4cb3971d9d9d

commitwatcher/__init__.py commitwatcher/agent.py commitwatcher/main.py setup.py commitwatcher/commit.py commitwatcher/store.py mozbasewatcher.py
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 26 Sep 2013 21:35:29 -0700
parents
children d85093ba9f45
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/commitwatcher/store.py	Thu Sep 26 21:35:29 2013 -0700
@@ -0,0 +1,15 @@
+from abc import abstractmethod
+
+class CommitStore(object):
+    """ABC for commits"""
+
+    @abstractmethod
+    def add(self, commit):
+        """adds a commit to the store"""
+
+class MemoryStore(CommitStore):
+    """store in volatile memory"""
+    # volatile!
+
+    def add(self, commit):
+        raise NotImplementedError