Skip to content

Commit

Permalink
Add top-level blacklight:index:seed rake task to proxy that task from…
Browse files Browse the repository at this point in the history
… the internal test application
  • Loading branch information
cbeer committed Oct 18, 2015
1 parent 70820e0 commit a251b72
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion tasks/blacklight.rake
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ namespace :blacklight do
task :generate => ['engine_cart:generate'] do
end

namespace :index do
task :seed => ['engine_cart:generate'] do
within_test_app do
system "bundle exec rake blacklight:index:seed"
end
end
end

task :server do
if File.exists? 'spec/internal'
within_test_app do
Expand All @@ -44,8 +52,9 @@ namespace :blacklight do

SolrWrapper.wrap(port: '8983') do |solr|
solr.with_collection(name: 'blacklight-core', dir: File.join(File.expand_path("..", File.dirname(__FILE__)), "solr", "conf")) do
Rake::Task['blacklight:index:seed'].invoke

within_test_app do
system "bundle exec rake blacklight:index:seed"
system "bundle exec rails s"
end
end
Expand Down

0 comments on commit a251b72

Please sign in to comment.