lib/softwear/lib.rb in softwear-lib-1.2.2 vs lib/softwear/lib.rb in softwear-lib-1.2.3
- old
+ new
@@ -89,10 +89,10 @@
on roles(:sidekiq) do
execute 'sudo restart sidekiq-manager'
end
end
- if defined?(Sunspot)
+ unless $LOAD_PATH.grep(/sunspot_solr/).empty?
before :publishing, :reindex_solr do
on roles(:db) do
execute :rake, 'sunspot:solr', 'reindex'
end
end