libexec/compare in alpha_omega-0.0.83 vs libexec/compare in alpha_omega-0.0.84
- old
+ new
@@ -1,9 +1,15 @@
#!/bin/bash -e
+if ! echo "$hst_this" | egrep "^(admin|develop)"; then
+ # ssh into deploy host and run from there
+ exec bin/proxy $(basename $0) "$@"
+ exit 1
+fi
+
case "$(basename $0)" in
- deploy|major|patch)
+ deploy|release)
bundle exec cap ssh_gateway "$@" deploy
;;
rollback)
bundle exec cap ssh_gateway "$@" deploy:rollback
@@ -17,9 +23,29 @@
bundle exec cap ssh_gateway "$@" deploy:compare
;;
restart)
bundle exec cap ssh_gateway "$@" deploy:restart
+ ;;
+
+ restart)
+ bundle exec cap ssh_gateway "$@" deploy:restart
+ ;;
+
+ build)
+ bundle exec cap ssh_gateway "$@" deploy:build
+ ;;
+
+ dist)
+ bundle exec cap ssh_gateway "$@" deploy:dist
+ ;;
+
+ config)
+ bundle exec cap ssh_gateway "$@" deploy:config
+ ;;
+
+ invoke)
+ bundle exec cap ssh_gateway "$@" invoke
;;
shell)
bundle exec cap ssh_gateway "$@" shell
;;