private void DownloadPluginSnapshot(string downloadLocation, ElasticsearchPluginConfiguration plugin, ElasticsearchVersion v)
        {
            if (File.Exists(downloadLocation))
            {
                return;
            }
            var downloadUrl = plugin.SnapshotDownloadUrl(v);

            Console.WriteLine($"Download plugin snapshot {plugin.Moniker}: {downloadUrl}");
            this.DownloadFile(downloadUrl, downloadLocation);
            Console.WriteLine($"Download plugin snapshot {plugin.Moniker}");
        }
Exemple #2
0
        private void DownloadPluginSnapshot(string downloadLocation, ElasticsearchPluginConfiguration plugin, ElasticsearchVersion v)
        {
            if (File.Exists(downloadLocation))
            {
                return;
            }
            var downloadUrl = plugin.SnapshotDownloadUrl(v);

            Console.WriteLine($"Download plugin snapshot {plugin.Moniker}: {downloadUrl}");
            try
            {
                this.DownloadFile(downloadUrl, downloadLocation);
                Console.WriteLine($"Downloaded plugin snapshot {plugin.Moniker}");
            }
            catch (Exception e)
            {
                Console.WriteLine($"Failed downloading plugin snapshot {plugin.Moniker}, {e.Message}");
            }
        }