diff --git a/plugins/elasticsearch/Rakefile b/plugins/elasticsearch/Rakefile new file mode 100644 index 0000000..bbea548 --- /dev/null +++ b/plugins/elasticsearch/Rakefile @@ -0,0 +1,17 @@ +#!/usr/bin/env rake + +require 'open-uri' + +desc "download elasticsearch" +task :download do + unless File.exists? '/tmp/elasticsearch.deb' + puts "downloading elasticsearch Debian package..." + download = open('https://download.elastic.co/elasticsearch/elasticsearch/elasticsearch-1.7.5.deb') + IO.copy_stream(download, '/tmp/elasticsearch.deb') + end +end + +desc "install elasticsearch" +task :install => :download do + sh 'sudo dpkg -i /tmp/elasticsearch.deb || sudo apt-get install -f' +end -- libgit2 0.21.2