summaryrefslogtreecommitdiff
path: root/dotbot/plugins/create.py
diff options
context:
space:
mode:
Diffstat (limited to 'dotbot/plugins/create.py')
-rw-r--r--dotbot/plugins/create.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/dotbot/plugins/create.py b/dotbot/plugins/create.py
index 7e39c1a..2420558 100644
--- a/dotbot/plugins/create.py
+++ b/dotbot/plugins/create.py
@@ -9,15 +9,7 @@ class Create(dotbot.Plugin):
_directive = 'create'
- def can_handle(self, directive):
- return directive == self._directive
-
- def handle(self, directive, data):
- if directive != self._directive:
- raise ValueError('Create cannot handle directive %s' % directive)
- return self._process_paths(data)
-
- def _process_paths(self, paths):
+ def handle(self, directive, paths):
success = True
for path in paths:
path = os.path.expandvars(os.path.expanduser(path))