diff --git a/lib/capistrano/strategy/rsync.rb b/lib/capistrano/strategy/rsync.rb index dc05e19..5ee20f3 100644 --- a/lib/capistrano/strategy/rsync.rb +++ b/lib/capistrano/strategy/rsync.rb @@ -26,7 +26,7 @@ desc "Stage and rsync to the server (or its cache)." task :rsync => %w[rsync:stage] do - roles(:all).each do |role| + on roles(:all) do |role| user = role.user + "@" if !role.user.nil? rsync = %w[rsync]