]>
git.immae.eu Git - perso/Immae/Projets/Puppet.git/blob - scripts/send_and_run.tcl
2 set dest
[lindex $argv 0]
3 set password
[lindex $argv 1]
4 set git_branch
[lindex $argv 2]
5 set environment
[lindex $argv 3]
6 set script
[lindex $argv 4]
7 set files
[lrange $argv 4 end
]
9 if {$password == "x"} {
15 set scriptname
[file tail
$script]
17 set sshopts
[split "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=no"]
20 spawn scp
{*}$sshopts {*}$files $dest:/tmp
26 spawn ssh
{*}$sshopts $dest /tmp
/$scriptname $git_branch $environment