diff options
Diffstat (limited to 'tools/action.py')
-rw-r--r-- | tools/action.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/action.py b/tools/action.py new file mode 100644 index 0000000..a2d0ba0 --- /dev/null +++ b/tools/action.py @@ -0,0 +1,30 @@ +# The basic workflow is like this: +# git rsync +# [remote git] <-> [local git] <-> [local storage] +# +# If action PULL is specified: +# 1. git pull from remote repo +# 2. rsync local repo to local storage +# +# If action PUSH is specified: +# 1. rsync from local storage to local repo +# 2. git push to remote repo + +# Pull config files from git repo + +import git + +def repo_pull(): + pass + +# Push config files to git repo +def repo_push(): + pass + +# Pull config files from local storage to be pushed to repo +def local_pull(): + pass + +# Push config pulled from repo to local storage +def local_push(): + pass |