From 64f476b48be3e79e89130ae25d9d9426b471b3cb Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 3 Oct 2013 15:38:53 -0300 Subject: [PATCH] solr: implement install file --- plugins/solr/install.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/solr/install.rb b/plugins/solr/install.rb index f67ad09..1043ba6 100644 --- a/plugins/solr/install.rb +++ b/plugins/solr/install.rb @@ -1 +1,13 @@ -raise "Not ready yet!" +require 'rubygems' +require 'rake' + +tasks_dir = File.join(File.dirname(__FILE__), 'vendor', 'plugins', 'acts_as_solr_reloaded', 'lib', 'tasks', '*.rake') + +Dir[tasks_dir].each do |file| + load file +end + +begin + Rake::Task['solr:download'].invoke +rescue Exception => exception +end -- libgit2 0.21.2