From 3d29c62bfbbac1e143ad6ef4276ecabf0650a75f Mon Sep 17 00:00:00 2001 From: Arian Acosta Date: Sat, 15 Jul 2017 11:01:52 -0400 Subject: [PATCH] adding more commands --- laradock.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/laradock.sh b/laradock.sh index 4517d5b..126eab1 100755 --- a/laradock.sh +++ b/laradock.sh @@ -4,6 +4,8 @@ if [[ $# -eq 0 ]] ; then exit 1 fi +echo -e "Default \e[44mBlue"; + if [ "$1" == "up" ] ; then echo "Initializing Docker Sync"; docker-sync start; @@ -14,6 +16,13 @@ elif [ "$1" == "down" ]; then docker-compose down; echo "Stopping Docker Sync"; docker-sync stop; +elif [ "$1" == "install" ]; then + echo "Installing docker-sync"; + gem install docker-sync; +elif [ "$1" == "sync" ]; then + docker-sync sync; +elif [ "$1" == "clean" ]; then + docker-sync clean; else echo "Invalid arguments. Use 'up' or 'down'"; fi