Better handling of paths
This commit is contained in:
parent
8dbd283a8a
commit
b52ca641b6
|
@ -251,10 +251,11 @@ function deploy_put_file($name, $path, $contents, $opts = 0)
|
|||
{
|
||||
$decl = deploy_get_node($name);
|
||||
|
||||
$path = deploy_str($decl, $path);
|
||||
|
||||
foreach($decl->get('hosts') as $host)
|
||||
{
|
||||
$ssh = deploy_get_ssh($decl, $host, $opts);
|
||||
$path = deploy_str($decl, $path);
|
||||
$scp = new SCP($ssh);
|
||||
if(($opts & DEPLOY_OPT_SILENT) == 0)
|
||||
echo "[PUT] $host: $path\n";
|
||||
|
@ -317,6 +318,8 @@ function deploy_scp_put_file_async($name, $local_path, $remote_path, $opts = 0)
|
|||
|
||||
$decl = deploy_get_node($name);
|
||||
|
||||
$remote_path = deploy_str($decl, $remote_path);
|
||||
|
||||
$user = $decl->get('user');
|
||||
|
||||
$tmp_key_file = tempnam("/tmp", "ssh_");
|
||||
|
|
Loading…
Reference in New Issue