Sha256: 738a8e9e55d328d894311e5858836a119e21d4a1c0f8b489d3176cc0ecbdd0ea
Contents?: true
Size: 876 Bytes
Versions: 7
Compression:
Stored size: 876 Bytes
Contents
#!/bin/bash # # This script is used to execute non-ruby deploy hooks. It's called from # EY::Serverside::Deploy#callback. If you'd like to call it directly you should # be careful to replicate everything done in EY::Serverside::Deploy or your # hook code may not execute as planned. # set -o nounset abort() { echo "$*" exit 1 } HOOK=${1:-} [ -n "${HOOK}" ] || abort "No hook name provided." # We run all deploy hooks from the root directory of the current release of # their app. [ -n "${EY_DEPLOY_RELEASE_PATH:-}" ] || abort "EY_DEPLOY_RELEASE_PATH must be set." [ -d ${EY_DEPLOY_RELEASE_PATH} ] || abort "EY_DEPLOY_RELEASE_PATH must exist and be a directory" cd ${EY_DEPLOY_RELEASE_PATH} # Run the hook. _hook_path=deploy/${HOOK} if [ ! \( -f ${_hook_path} -a -x ${_hook_path} \) ]; then abort "${_hook_path} must exist and be executable" fi exec ${_hook_path}
Version data entries
7 entries across 7 versions & 1 rubygems