Sha256: d8a98c306387ec420360a04302ad2df697f0036d68771ed55370435e49aa1f42
Contents?: true
Size: 622 Bytes
Versions: 10
Compression:
Stored size: 622 Bytes
Contents
# frozen_string_literal: true ETCD_VERSION = ENV["ETCD_VERSION_TO_TEST"] || "v3.2.0" ETCD_URL = "https://github.com/coreos/etcd/releases/download/" \ "#{ETCD_VERSION}/etcd-#{ETCD_VERSION}-linux-amd64.tar.gz" require "tmpdir" desc "Download etcd for it can be used in rspec" task :"download-etcd" do tmpdir = Dir.mktmpdir system("wget", ETCD_URL, "-O", "#{tmpdir}/etcd.tar.gz") || exit(1) system(*%W{tar -C #{tmpdir} -zxvf #{tmpdir}/etcd.tar.gz}) || exit(1) puts "Etcd downloaded and extracted. Add it to the path:" puts " export PATH=\"#{tmpdir}/etcd-#{ETCD_VERSION}-linux-amd64:$PATH\"" end
Version data entries
10 entries across 10 versions & 2 rubygems