Sha256: 9dc864b8de8fb7123af232fcf41a0741e6621a1a5aa7d14f3473dd447043d8aa

Contents?: true

Size: 857 Bytes

Versions: 11

Compression:

Stored size: 857 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 log vendor/elasticsearch/logs vendor/elasticsearch/data"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
springboard-0.20.1 Rakefile
springboard-0.20.0 Rakefile
springboard-0.20.0.RC1 Rakefile
springboard-0.19.11 Rakefile
springboard-0.19.10 Rakefile
springboard-0.19.9 Rakefile
springboard-0.19.8 Rakefile
springboard-0.19.7 Rakefile
springboard-0.19.6 Rakefile
springboard-0.19.5 Rakefile
springboard-0.19.4 Rakefile