libexec/compare in alpha_omega-0.0.88 vs libexec/compare in alpha_omega-0.0.89

- old
+ new

@@ -1,57 +1,57 @@ #!/bin/bash -e hst_this=$(hostname -s) -if ! echo "$hst_this" | egrep "^(admin|develop)"; then +if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then # ssh into deploy host and run from there exec bin/proxy $(basename $0) "$@" exit 1 fi case "$(basename $0)" in deploy|release) - bundle exec cap ssh_gateway "$@" deploy + bundle exec cap "$@" deploy ;; rollback) - bundle exec cap ssh_gateway "$@" deploy:rollback + bundle exec cap "$@" deploy:rollback ;; stage) - bundle exec cap ssh_gateway "$@" deploy:update_code + bundle exec cap "$@" deploy:update_code ;; compare) - bundle exec cap ssh_gateway "$@" deploy:compare + bundle exec cap "$@" deploy:compare ;; restart) - bundle exec cap ssh_gateway "$@" deploy:restart + bundle exec cap "$@" deploy:restart ;; restart) - bundle exec cap ssh_gateway "$@" deploy:restart + bundle exec cap "$@" deploy:restart ;; build) - bundle exec cap ssh_gateway "$@" deploy:build + bundle exec cap "$@" deploy:build ;; dist) - bundle exec cap ssh_gateway "$@" deploy:dist + bundle exec cap "$@" deploy:dist ;; config) - bundle exec cap ssh_gateway "$@" deploy:config + bundle exec cap "$@" deploy:config ;; invoke) - bundle exec cap ssh_gateway "$@" invoke + bundle exec cap "$@" invoke ;; shell) - bundle exec cap ssh_gateway "$@" shell + bundle exec cap "$@" shell ;; hosts) export LOCAL_ONLY=true @@ -67,9 +67,9 @@ cap $(for a in "$@"; do echo $a.yaml; done) } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##' ;; *) - bundle exec cap ssh_gateway "$@" + bundle exec cap "$@" ;; esac