Add tests for every command
This commit is contained in:
@@ -47,6 +47,15 @@ case "$1" in
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [[ $@ =~ \{\{\.State\..*\}\} ]]; then
|
||||
if [[ $@ =~ \{\{\.State\.Running\}\} ]]; then
|
||||
echo "true"
|
||||
else
|
||||
echo "false"
|
||||
fi
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# running
|
||||
echo "true"
|
||||
;;
|
||||
@@ -66,6 +75,9 @@ case "$1" in
|
||||
pull)
|
||||
exit 0
|
||||
;;
|
||||
logs)
|
||||
echo "1:M 08 Sep 07:36:43.544 # Server started, Redis version 3.0.3"
|
||||
;;
|
||||
*)
|
||||
exit "$DOKKU_NOT_IMPLEMENTED_EXIT"
|
||||
;;
|
||||
|
||||
Reference in New Issue
Block a user