mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-07 01:55:37 +00:00
refactor links and add more tests
This commit is contained in:
@@ -30,6 +30,9 @@ class Dotfile:
|
||||
self.dst = dst
|
||||
self.src = src
|
||||
self.link = link
|
||||
# ensure link of right type
|
||||
if type(link) != LinkTypes:
|
||||
raise Exception('bad value for link: {}'.format(link))
|
||||
self.actions = actions
|
||||
self.trans_r = trans_r
|
||||
self.trans_w = trans_w
|
||||
|
||||
Reference in New Issue
Block a user