Exemplo n.º 1
0
        internal static ProcessArgumentBuilder BuildForLinux(this RSyncSettings settings, string source,
                                                             string destination)
        {
            ProcessArgumentBuilder args = new ProcessArgumentBuilder();

            args = settings.BuildLinuxArguments(args);
            args.AppendQuoted(source);
            args.AppendQuoted(destination);
            return(args);
        }
Exemplo n.º 2
0
        public static void RSync(this ICakeContext ctx, string source, string destination, RSyncSettings settings)
        {
            if (ctx.Environment.Platform.Family != PlatformFamily.Linux)
            {
                throw new NotSupportedException("AzCopy is only supported on linux");
            }
            RSyncRunner runner = new RSyncRunner(ctx);

            runner.RunTool(source, destination, settings);
        }