Commit 64f476b48be3e79e89130ae25d9d9426b471b3cb
1 parent
604eb3f6
Exists in
master
and in
28 other branches
solr: implement install file
Showing
1 changed file
with
13 additions
and
1 deletions
Show diff stats
plugins/solr/install.rb
1 | -raise "Not ready yet!" | |
1 | +require 'rubygems' | |
2 | +require 'rake' | |
3 | + | |
4 | +tasks_dir = File.join(File.dirname(__FILE__), 'vendor', 'plugins', 'acts_as_solr_reloaded', 'lib', 'tasks', '*.rake') | |
5 | + | |
6 | +Dir[tasks_dir].each do |file| | |
7 | + load file | |
8 | +end | |
9 | + | |
10 | +begin | |
11 | + Rake::Task['solr:download'].invoke | |
12 | +rescue Exception => exception | |
13 | +end | ... | ... |