# File lib/rake_remote_task.rb, line 199
  def rsync local, remote
    cmd = [rsync_cmd, rsync_flags, local, "#{target_host}:#{remote}"]
    cmd = cmd.flatten.compact

    warn cmd.join(' ') if $TRACE

    success = system(*cmd)

    unless success then
      raise Vlad::CommandFailedError, "execution failed: #{cmd.join ' '}"
    end
  end