1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-06 18:55:38 +00:00

Merge upstream

This commit is contained in:
Marcel Robitaille
2019-01-20 16:16:12 -04:00
12 changed files with 407 additions and 47 deletions

View File

@@ -12,7 +12,8 @@ class Dotfile:
def __init__(self, key, dst, src,
actions={}, trans_r=None, trans_w=None,
link=LinkTypes.NOLINK, cmpignore=[], noempty=False):
link=LinkTypes.NOLINK, cmpignore=[], noempty=False,
upignore=[]):
# key of dotfile in the config
self.key = key
# path where to install this dotfile
@@ -31,6 +32,8 @@ class Dotfile:
self.cmpignore = cmpignore
# do not deploy empty file
self.noempty = noempty
# pattern to ignore when updating
self.upignore = upignore
def __str__(self):
msg = 'key:\"{}\", src:\"{}\", dst:\"{}\", link:\"{}\"'