]> git.immae.eu Git - github/fretlink/ansible-clever.git/blame - tests/fake.sh
Extract environment building tasks from the JSON template
[github/fretlink/ansible-clever.git] / tests / fake.sh
CommitLineData
c99eb178
PB
1#!/usr/bin/env bash
2
3binary="${0/*\/}"
4fakeCommit="aaa000aaa000aaa000aaa000aaa000aaa000aaa0"
5
6if [ "${binary}" = "clever" ] && [ "${1}" = "--version" ]; then
b89d0540 7 echo "2.6.1"
c99eb178
PB
8elif [ "${binary}" = "clever" ] && [ "${1}" = "activity" ]; then
9 echo "2020-02-02T20:20:02+02:00 OK DEPLOY ${fakeCommit} Git"
10elif [ "${binary}" = "git" ]; then
11 echo "${fakeCommit}"
12else
13 echo "${binary} called with arguments: ${*}"
14fi