Ejemplo n.º 1
0
        public static void CurlDownloadFile(
            this ICakeContext context,
            Uri host,
            CurlDownloadSettings settings)
        {
            var runner = new CurlDownloadRunner(
                context.FileSystem,
                context.Environment,
                context.ProcessRunner,
                context.Tools);

            runner.DownloadFile(host, settings);
        }
Ejemplo n.º 2
0
        public static void CurlDownloadFiles(
            this ICakeContext context,
            IEnumerable <Uri> hosts,
            CurlDownloadSettings settings)
        {
            var runner = new CurlDownloadRunner(
                context.FileSystem,
                context.Environment,
                context.ProcessRunner,
                context.Tools);

            runner.DownloadFiles(hosts, settings);
        }