From d3a5aa4cdd022e0fc336b66177b9eee7c2675485 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Tue, 19 Jan 2016 09:54:55 -0500 Subject: Update function organization in dotfile.py --- dotfiles/dotfile.py | 12 ++++++------ 1 file 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 '' % 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) -- cgit v1.2.3