From 2d2616febf2f4da20bc9ef2c46bf62fc3c93c537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ferit=20Yi=C4=9Fit=20BALABAN?= Date: Fri, 10 Feb 2023 22:38:23 +0300 Subject: [PATCH] + logic for method deploy() --- dotman.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dotman.py b/dotman.py index 9b58854..a5b611b 100755 --- a/dotman.py +++ b/dotman.py @@ -173,6 +173,18 @@ def commit_then_push(): return 0, None if code == 0 else 2, None return 1, None + +def deploy(): + """ + Kindly executes the steps to get a up-to-date local repository, + deploy (copy) files and directories to the local config directory. + """ + # if no local repo + # go to ../local_repo and clone remote_url + # go to local_repo and exec git fetch && git pull + # copy files & directories + + def expand_settings(): """ Expands variables used in SETTINGS