Sha256: ee4a4f20eb024c441f79b6ec50f4bf4857e089307e1b6546f49e3efce48182f0
Contents?: true
Size: 617 Bytes
Versions: 39
Compression:
Stored size: 617 Bytes
Contents
#!/bin/sh -e # Created by Yaroslav on 10/21/11. # Copyright 2011 nix. All rights reserved. # Script uploads IPA product. Creates appropriate subdirectories. if [[ $# < 6 ]]; then echo "usage: $0 DEPLOY_HOST DEPLOY_DIR DEPLOY_USER DEPLOY_PASSWORD LOCAL_PATH_TO_BUILD RELATIVE_PATH" exit 1 fi DEPLOY_HOST=$1 DEPLOY_DIR=$2 DEPLOY_USER=$3 DEPLOY_PASS=$4 LOCAL_PATH_TO_BUILD=$5 RELATIVE_PATH=$6 echo "Uploading build" scp -r "${LOCAL_PATH_TO_BUILD}" "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_DIR}" ssh ${DEPLOY_USER}@${DEPLOY_HOST} "chmod 775 -R ${DEPLOY_DIR}/${RELATIVE_PATH}" rm -rf "${LOCAL_PATH_TO_BUILD}"
Version data entries
39 entries across 39 versions & 1 rubygems