Sha256: 6f7db112f9103d8b6449bc367cc67bc0701004e6a037b1a203a65598d71a4476
Contents?: true
Size: 805 Bytes
Versions: 50
Compression:
Stored size: 805 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 [[ $# < 5 ]]; then echo "usage: $0 DEPLOY_HOST DEPLOY_DIR DEPLOY_USER DEPLOY_PASSWORD LOCAL_PATH_TO_BUILD" exit 1 fi DEPLOY_HOST=$1 DEPLOY_DIR=$2 DEPLOY_USER=$3 DEPLOY_PASS=$4 LOCAL_PATH_TO_BUILD=$5 chmod -R 775 "${LOCAL_PATH_TO_BUILD}" echo "Uploading build" expect -d <<END_OF_SCRIPT set timeout -1 spawn scp -p -r "${LOCAL_PATH_TO_BUILD}" "${DEPLOY_USER}@${DEPLOY_HOST}:${DEPLOY_DIR}" expect { "Password:" { send "${DEPLOY_PASS}\r" } "yes/no)?" { send "yes\r" } eof { exit } -re . { exp_continue } } expect eof exit END_OF_SCRIPT rm -rf "${LOCAL_PATH_TO_BUILD}"
Version data entries
50 entries across 50 versions & 1 rubygems