Sha256: 281ae75958e6abc6d82d9d458912e5acc71f572e3b3b07315660af0ce3d8e559
Contents?: true
Size: 862 Bytes
Versions: 10
Compression:
Stored size: 862 Bytes
Contents
#!/usr/bin/env rake require "bundler/gem_tasks" desc "update elasticsearch version" task :update, [:version] do |t, args| sh "rm -rf vendor/elasticsearch && mkdir vendor/elasticsearch" sh "wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-#{args.version}.tar.gz" sh "tar zxvf elasticsearch-#{args.version}.tar.gz" sh "mv elasticsearch-#{args.version}/* vendor/elasticsearch" sh "rm -rf elasticsearch-#{args.version} elasticsearch-#{args.version}.tar.gz" sh "cp vendor/elasticsearch/bin/elasticsearch.in.sh lib/springboard/generators/templates" File.open("lib/springboard/version.rb", "w") do |f| f.write <<EOS module Springboard VERSION = "#{args.version}" end EOS end end desc "Clean data from vendor/elasticsearch" task :clean do sh "rm -rf log vendor/elasticsearch/logs vendor/elasticsearch/data" end
Version data entries
10 entries across 10 versions & 1 rubygems