Sha256: f375abf5d4366bb24207b2e4728423384129955de5754f9caf47aea8611d8151

Contents?: true

Size: 853 Bytes

Versions: 5

Compression:

Stored size: 853 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 https://github.com/downloads/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 vendor/elasticsearch/logs vendor/elasticsearch/data"
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
springboard-0.19.3 Rakefile
springboard-0.19.2 Rakefile
springboard-0.19.1 Rakefile
springboard-0.19.0.1 Rakefile
springboard-0.19.0 Rakefile