Ejemplo n.º 1
0
 Convert(
     this IRsyncSettings settings,
     Bam.Core.StringArray commandLine)
 {
     if (settings.Verbose)
     {
         commandLine.Add("-v");
     }
     if (settings.Recursive)
     {
         commandLine.Add("-r");
     }
     if (settings.PreserveAllAttributes)
     {
         commandLine.Add("-a");
     }
     if (settings.UseChecksums)
     {
         commandLine.Add("-c");
     }
     if (null != settings.Exclusions)
     {
         foreach (var exclude in settings.Exclusions)
         {
             commandLine.Add(System.String.Format("--exclude {0}", exclude.ToString()));
         }
     }
 }
Ejemplo n.º 2
0
 Defaults(
     this IRsyncSettings settings,
     Bam.Core.Module module)
 {
     settings.Verbose               = true;
     settings.Recursive             = (module is CollatedDirectory || module is CollatedOSXFramework);
     settings.PreserveAllAttributes = true;
     settings.UseChecksums          = true;
     settings.Exclusions            = null;
 }