]>
git.immae.eu Git - github/fretlink/ansible-clever.git/blob - tests/fake.sh
4 localCommit
="${PRETEND_LOCAL_COMMIT:-aaa000aaa000aaa000aaa000aaa000aaa000aaa0}"
5 remoteCommit
="${PRETEND_REMOTE_COMMIT:-bbb000bbb000bbb000bbb000bbb000bbb000bbb0}"
6 uptodateDeployment
="${DEPLOY_UP_TO_DATE_APP:-}"
8 echo "${1}" >> "${binary}-commands"
10 if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then
12 elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then
13 echo "2020-02-02T20:20:02+02:00 OK DEPLOY ${remoteCommit} Git"
14 elif [ "${binary}" = "clever" ] && [ "${1}" = "status" ]; then
15 echo "test-app: running (1*pico, Commit: ${remoteCommit})"
16 elif [ "${binary}" = "clever" ] && [ "${1}" = "deploy" ]; then
17 if [ -z "${uptodateDeployment}" ]; then
18 echo "Clever deploy done."
20 # Mimic the current behavior until https://github.com/CleverCloud/clever-tools/issues/422 is solved
21 >&2 echo "The clever-cloud application is up-to-date. Try this command to restart the application:"
22 >&2 echo " clever restart"
25 elif [ "${binary}" = "git" ]; then
28 echo "${binary} called with arguments: ${*}"