libexec/build in alpha_omega-0.0.95 vs libexec/build in alpha_omega-0.0.96

- old
+ new

@@ -9,54 +9,10 @@ exit 1 fi fi case "$(basename $0)" in - deploy|release) - bundle exec cap "$@" deploy - ;; - - rollback) - bundle exec cap "$@" deploy:rollback - ;; - - stage) - bundle exec cap "$@" deploy:update_code - ;; - - compare) - bundle exec cap "$@" deploy:compare - ;; - - restart) - bundle exec cap "$@" deploy:restart - ;; - - restart) - bundle exec cap "$@" deploy:restart - ;; - - build) - bundle exec cap "$@" deploy:build - ;; - - dist) - bundle exec cap "$@" deploy:dist - ;; - - config) - bundle exec cap "$@" deploy:config - ;; - - invoke) - bundle exec cap "$@" invoke - ;; - - shell) - bundle exec cap "$@" shell - ;; - hosts) export LOCAL_ONLY=true { cap $(for a in "$@"; do echo $a.echo; done) @@ -70,9 +26,57 @@ cap $(for a in "$@"; do echo $a.yaml; done) } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##' ;; *) - bundle exec cap "$@" - ;; + set $(for a in "$@"; do echo $a.app; done) + case "$(basename $0)" in + deploy|release) + bundle exec cap "$@" deploy + ;; + + rollback) + bundle exec cap "$@" deploy:rollback + ;; + + stage) + bundle exec cap "$@" deploy:update_code + ;; + + compare) + bundle exec cap "$@" deploy:compare + ;; + + restart) + bundle exec cap "$@" deploy:restart + ;; + + restart) + bundle exec cap "$@" deploy:restart + ;; + + build) + bundle exec cap "$@" deploy:build + ;; + + dist) + bundle exec cap "$@" deploy:dist + ;; + + config) + bundle exec cap "$@" deploy:config + ;; + + invoke) + bundle exec cap "$@" invoke + ;; + + shell) + bundle exec cap "$@" shell + ;; + + *) + bundle exec cap "$@" + ;; + esac esac