]> git.immae.eu Git - github/fretlink/ansible-clever.git/blame_incremental - tests/fake.sh
Add support for linking service dependencies
[github/fretlink/ansible-clever.git] / tests / fake.sh
... / ...
CommitLineData
1#!/usr/bin/env bash
2
3binary="${0/*\/}"
4localCommit="${PRETEND_LOCAL_COMMIT:-aaa000aaa000aaa000aaa000aaa000aaa000aaa0}"
5remoteCommit="${PRETEND_REMOTE_COMMIT:-bbb000bbb000bbb000bbb000bbb000bbb000bbb0}"
6
7if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then
8 echo "2.6.1"
9elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then
10 echo "2020-02-02T20:20:02+02:00 OK DEPLOY ${remoteCommit} Git"
11elif [ "${binary}" = "clever" ] && [ "${1}" = "status" ]; then
12 echo "test-app: running (1*pico, Commit: ${remoteCommit})"
13elif [ "${binary}" = "git" ]; then
14 echo "${localCommit}"
15else
16 echo "${binary} called with arguments: ${*}"
17fi
18
19echo "${1}" >> "${binary}-commands"