Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions lib/solr_wrapper/instance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,15 @@ def version
end

def wrap(&_block)
extract_and_configure
start
yield self
ensure
stop
raise "There is a Solr instance already running on port #{port}." if started?

begin
extract_and_configure
start
yield self
ensure
stop
end
end

##
Expand Down