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

Version Path
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/etcdv3-0.11.5/Rakefile
etcdv3-0.11.6 Rakefile
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/etcdv3-0.11.5/Rakefile
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/etcdv3-0.11.5/Rakefile
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/etcdv3-0.11.5/Rakefile
etcdv3-0.11.5 Rakefile
etcdv3-0.11.4 Rakefile
etcdv3-0.11.3 Rakefile
etcdv3-0.10.2 Rakefile
etcdv3-0.10.1 Rakefile