Пример #1
0
 public void Push(ITransferProgress status, string localSub = null, string remoteSub = null)
 {
     CreateSshFolder();
     HandleRsyncResponse(_rsyncLauncher.RunAndProcess(
                             status,
                             JoinPathsIfNeeded(Local, localSub),
                             JoinPathsIfNeeded(Remote, remoteSub),
                             BuildOptions()));
 }
Пример #2
0
        public void CanUploadRsync()
        {
            Strategy.Upload(new FileUploadSpec("b", new Uri("rsync://host/b")));

            A.CallTo(() => _rsyncLauncher.RunAndProcess(A <ITransferProgress> ._, "b", "rsync://host/b", null))
            .MustHaveHappened(Repeated.Exactly.Once);
        }
Пример #3
0
 public override void Upload(TransferSpec spec)
 {
     spec.Progress.Tries++;
     ConfirmSchemeSupported(spec.Uri.Scheme);
     ProcessExitResult(
         _rsyncLauncher.RunAndProcess(spec.Progress, spec.LocalFile.ToString(), spec.Uri.ToString()), spec);
 }
 public override void Download(TransferSpec spec)
 {
     spec.Progress.Tries++;
     ConfirmSchemeSupported(spec.Uri.Scheme);
     ProcessExitResult(
         _rsyncLauncher.RunAndProcess(spec.Progress, spec.Uri.ToString(), spec.LocalFile.ToString(),
                                      spec.CancellationToken), spec);
     VerifyIfNeeded(spec, spec.LocalFile);
 }