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())); } } }
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; }