aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dotfiles/core.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/dotfiles/core.py b/dotfiles/core.py
index f3241c9..c679039 100644
--- a/dotfiles/core.py
+++ b/dotfiles/core.py
@@ -78,7 +78,6 @@ class Dotfiles(object):
self._load()
-
def _load(self):
"""Load each dotfile in the repository."""
@@ -91,14 +90,12 @@ class Dotfiles(object):
for dotfile in self.externals.keys():
self.dotfiles.append(Dotfile(dotfile, self.externals[dotfile], self.home))
-
def _fqpn(self, dotfile):
"""Return the fully qualified path to a dotfile."""
return os.path.join(self.repo,
self.prefix + os.path.basename(dotfile).strip('.'))
-
def list(self, verbose=True):
"""List the contents of this repository."""
@@ -106,13 +103,11 @@ class Dotfiles(object):
if dotfile.status or verbose:
print dotfile
-
def check(self):
"""List only unmanaged and/or missing dotfiles."""
self.list(verbose=False)
-
def sync(self, force=False):
"""Synchronize this repository, creating and updating the necessary
@@ -121,19 +116,16 @@ class Dotfiles(object):
for dotfile in self.dotfiles:
dotfile.sync(force)
-
def add(self, files):
"""Add dotfile(s) to the repository."""
self._perform_action('add', files)
-
def remove(self, files):
"""Remove dotfile(s) from the repository."""
self._perform_action('remove', files)
-
def _perform_action(self, action, files):
for file in files:
if os.path.basename(file).startswith('.'):
@@ -141,7 +133,6 @@ class Dotfiles(object):
else:
print "Skipping \"%s\", not a dotfile" % file
-
def move(self, target):
"""Move the repository to another location."""