lib/desi/downloader.rb in desi-0.2.1 vs lib/desi/downloader.rb in desi-0.2.2

- old
+ new

@@ -14,11 +14,11 @@ @client = opts.fetch(:http_client_factory, Desi::HttpClient).new(@host) @verbose = opts[:verbose] end def download!(version, opts = {}) - path = "/downloads/elasticsearch/elasticsearch/#{version.name}" - destination_name = @destination_dir.join File.basename(version.name) + path = "/downloads/elasticsearch/elasticsearch/#{version.archive_name}" + destination_name = @destination_dir.join File.basename(version.archive_name) raise "ERROR: File #{destination_name} already present!" if destination_name.exist? puts " * fetching release #{version} from #{@host + path}" if @verbose