Sha256: a50af5fa5ee9b44942860a86beea01d33936405a4a508b434b81328643b75abd

Contents?: true

Size: 1.81 KB

Versions: 110

Compression:

Stored size: 1.81 KB

Contents

#!/bin/bash -e

hst_this=$(hostname -s)
if ! echo "$hst_this" | egrep -q "^(admin|develop)"; then
  # unless the .ao_no_proxy file exists
  if [[ ! -f ".ao_no_proxy" ]]; then
    # ssh into deploy host and run from there
    exec bin/proxy $(basename $0) "$@"
    exit 1
  fi
fi

case "$(basename $0)" in
  debug)
    export LOCAL_ONLY=true

    {
    cap $(for a in "$@"; do echo $a.echo; done)
    }
    ;;

  hosts)
    export LOCAL_ONLY=true

    {
    cap $(for a in "$@"; do echo $a.echo; done)
    } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | awk '{print $NF}' | sort -u
    ;;

  dna)
    export LOCAL_ONLY=true

    {
      echo "eea914aaa8dde6fdae29242b1084a2b0415eefaf ---"
      cap $(for a in "$@"; do echo $a.yaml; done)
    } 2>&1 | grep eea914aaa8dde6fdae29242b1084a2b0415eefaf | sed 's#eea914aaa8dde6fdae29242b1084a2b0415eefaf ##'
    ;;

  *)
    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
        ;;

      activate)
        bundle exec cap "$@" deploy:symlink deploy:restart
        ;;

      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

Version data entries

110 entries across 7 versions & 1 rubygems

Version Path
alpha_omega-0.0.111 libexec/release
alpha_omega-0.0.111 libexec/shell
alpha_omega-0.0.111 libexec/dna
alpha_omega-0.0.111 libexec/hosts
alpha_omega-0.0.111 libexec/check
alpha_omega-0.0.111 libexec/deploy
alpha_omega-0.0.111 libexec/compare
alpha_omega-0.0.111 libexec/config
alpha_omega-0.0.111 libexec/debug
alpha_omega-0.0.111 libexec/invoke
alpha_omega-0.0.111 libexec/stage
alpha_omega-0.0.111 libexec/dist
alpha_omega-0.0.111 libexec/restart
alpha_omega-0.0.111 libexec/build
alpha_omega-0.0.111 libexec/activate
alpha_omega-0.0.111 libexec/rollback
alpha_omega-0.0.110 libexec/activate
alpha_omega-0.0.110 libexec/rollback
alpha_omega-0.0.110 libexec/stage
alpha_omega-0.0.110 libexec/dist