예제 #1
0
 public static void AzCopy(this ICakeContext ctx, string source, string destination, Action<AzCopySettings> configure)
 {
     if (ctx.Environment.Platform.Family == PlatformFamily.OSX) throw new NotSupportedException("AzCopy is not supported on macOS");
     var settings = new AzCopySettings();
     configure?.Invoke(settings);
     ctx.AzCopy(source, destination, settings);
 }
예제 #2
0
 public static void AzCopy(this ICakeContext ctx, string source, string destination)
 {
     if (ctx.Environment.Platform.Family == PlatformFamily.OSX) throw new NotSupportedException("AzCopy is not supported on macOS");
     ctx.AzCopy(source, destination, new AzCopySettings());
 }