Services

% show() { % $gitcmd show --quiet --format="$1" HEAD | escape_html % } % describe() { % $gitcmd describe --all --exact-match "$1" 2>/dev/null | escape_html % } % for serv in $CYCHE_SERVICE_DIR/*; do % gitcmd="git --git-dir=$serv/.git" % url=$($gitcmd remote get-url origin | escape_html) % previous_hash=$(cat $serv/.git/previous_hash) % current_hash=$(show '%H') % [ "$current_hash" == "$previous_hash" ] && class="" || class="standout"
%{ basename $serv %} %($url%)
Deployed: %($previous_hash%) %{describe $previous_hash%}
Commit: %($current_hash%) %{describe $current_hash%}
Committer: %{show '%cn <%ce>'%} %{show '%cD'%}
Tree: %{show '%T'%}
% done