Skip to content
This repository has been archived by the owner on Apr 26, 2020. It is now read-only.

Commit

Permalink
replace code to make ssh arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
okayasu committed Nov 20, 2017
1 parent 6e6a27a commit a0138a0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Changelog

Execute rsync with ssh options.
Added raygun recipe.
Added telegram notifier, based on Slack recipe.
Added slack:notify:failure task
Expand Down
4 changes: 2 additions & 2 deletions recipe/rsync.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@

$host = $server->getRealHostname();
$port = $server->getPort() ? ' -p' . $server->getPort() : '';
$identityFile = $server->getIdentityFile() ? ' -i '.$server->getIdentityFile():'';
$sshArguments = $server->getSshArguments();
$user = !$server->getUser() ? '' : $server->getUser() . '@';

runLocally("rsync -{$config['flags']} -e 'ssh$port$identityFile' {{rsync_options}}{{rsync_excludes}}{{rsync_includes}}{{rsync_filter}} '$src/' '$user$host:$dst/'", $config);
runLocally("rsync -{$config['flags']} -e 'ssh$port $sshArguments' {{rsync_options}}{{rsync_excludes}}{{rsync_includes}}{{rsync_filter}} '$src/' '$user$host:$dst/'", $config);
});

0 comments on commit a0138a0

Please sign in to comment.