aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles/dotfile.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/dotfiles/dotfile.py b/dotfiles/dotfile.py
index ce17378..7762abb 100644
--- a/dotfiles/dotfile.py
+++ b/dotfiles/dotfile.py
@@ -23,12 +23,6 @@ class Dotfile(object):
def __repr__(self):
return '<Dotfile %r>' % self.name
- def _link(self, debug):
- if debug:
- echo('LINK %s -> %s' % (self.name, self.target))
- else:
- self.name.mksymlinkto(self.target, absolute=0)
-
def _ensure_dirs(self, debug):
def ensure(dir, debug):
if not dir.check():
@@ -39,6 +33,12 @@ class Dotfile(object):
ensure(py.path.local(self.name.dirname), debug)
ensure(py.path.local(self.target.dirname), debug)
+ def _link(self, debug):
+ if debug:
+ echo('LINK %s -> %s' % (self.name, self.target))
+ else:
+ self.name.mksymlinkto(self.target, absolute=0)
+
def _unlink(self, debug):
if debug:
echo('UNLINK %s' % self.name)