summaryrefslogtreecommitdiff
path: root/dotbot/plugins/clean.py
diff options
context:
space:
mode:
Diffstat (limited to 'dotbot/plugins/clean.py')
-rw-r--r--dotbot/plugins/clean.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/dotbot/plugins/clean.py b/dotbot/plugins/clean.py
index e7f1561..c8f3a03 100644
--- a/dotbot/plugins/clean.py
+++ b/dotbot/plugins/clean.py
@@ -9,15 +9,7 @@ class Clean(dotbot.Plugin):
_directive = 'clean'
- def can_handle(self, directive):
- return directive == self._directive
-
- def handle(self, directive, data):
- if directive != self._directive:
- raise ValueError('Clean cannot handle directive %s' % directive)
- return self._process_clean(data)
-
- def _process_clean(self, targets):
+ def handle(self, directive, targets):
success = True
defaults = self._context.defaults().get(self._directive, {})
for target in targets: