From 194ae04e266f63512a8f041f6bfd0dc330cd81af Mon Sep 17 00:00:00 2001 From: "Yiting.Li" Date: Wed, 20 Jan 2016 11:01:43 +0800 Subject: JIRA: BOTTLENECKS-41 define the documents of vstf in B release Change-Id: Ib2ef6fabf0452a3e686d3de0ec7424e9a0500482 Signed-off-by: Yiting.Li --- .../heat_template/vstf_heat_template/scp.sh | 93 ---------------------- 1 file changed, 93 deletions(-) delete mode 100644 utils/infra_setup/heat_template/vstf_heat_template/scp.sh (limited to 'utils/infra_setup/heat_template/vstf_heat_template/scp.sh') diff --git a/utils/infra_setup/heat_template/vstf_heat_template/scp.sh b/utils/infra_setup/heat_template/vstf_heat_template/scp.sh deleted file mode 100644 index b3d6a27b..00000000 --- a/utils/infra_setup/heat_template/vstf_heat_template/scp.sh +++ /dev/null @@ -1,93 +0,0 @@ -function scp_cmd() -{ - local ip=$1 - local usr=$2 - local passwd=$3 - srcfile=$4 - desfile=$5 - opt=$6 - case $opt in - file) - expect -c " - spawn scp -r $srcfile $usr@$ip:$desfile - set timeout -1 - expect { - \"*no)?\" { - send \"yes\r\" - exp_continue - } - \"*assword:*\" { - send \"$passwd\r\" - exp_continue - } - } - " - ;; - dir) - expect -c " - spawn scp -r $srcfile $usr@$ip:$desfile - set timeout -1 - expect { - \"*no)?\" { - send \"yes\r\" - exp_continue - } - \"*assword:*\" { - send \"$passwd\r\" - exp_continue - } - } - " - ;; - *) - echo "err" - ;; - esac -} - -function remote_scp_cmd() -{ - local ip=$1 - local usr=$2 - local passwd=$3 - srcfile=$4 - desfile=$5 - opt=$6 - case $opt in - file) - expect -c " - spawn scp -r $usr@$ip:$srcfile $desfile - set timeout -1 - expect { - \"*no)?\" { - send \"yes\r\" - exp_continue - } - \"*assword:*\" { - send \"$passwd\r\" - exp_continue - } - } - " - ;; - dir) - expect -c " - spawn scp -r $usr@$ip:$srcfile $desfile - set timeout -1 - expect { - \"*no)?\" { - send \"yes\r\" - exp_continue - } - \"*assword:*\" { - send \"$passwd\r\" - exp_continue - } - } - " - ;; - *) - echo "err" - ;; - esac -} -- cgit 1.2.3-korg