install node-git-pull
npm install node-git-pull
create absolute path, check if path exists and is git-repository. If exists do git-pull, else git-clone.
using Docker for SSH-Key
testing if git-pull return exitcode 0, testing if a specified file exists. testing if git-clone return exitcode 0, testing if a specified file exists.