summaryrefslogtreecommitdiff
path: root/dotbot/plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'dotbot/plugin.py')
-rw-r--r--dotbot/plugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/dotbot/plugin.py b/dotbot/plugin.py
index 56d4da8..5e2c923 100644
--- a/dotbot/plugin.py
+++ b/dotbot/plugin.py
@@ -6,6 +6,8 @@ class Plugin(object):
Abstract base class for commands that process directives.
'''
+ _directive = None
+
def __init__(self, context):
self._context = context
self._log = Messenger()
@@ -14,7 +16,7 @@ class Plugin(object):
'''
Returns true if the Plugin can handle the directive.
'''
- raise NotImplementedError
+ return directive == self._directive
def handle(self, directive, data):
'''