lib/sunspot/solr/server.rb in sunspot_solr-2.6.0 vs lib/sunspot/solr/server.rb in sunspot_solr-2.7.0
- old
+ new
@@ -169,11 +169,11 @@
# ==== Returns
#
# Boolean:: success
#
def install_solr_home
- unless File.exists?(solr_home)
+ unless File.exist?(solr_home)
Sunspot::Solr::Installer.execute(
solr_home,
:force => true,
:verbose => true
)
@@ -187,10 +187,10 @@
#
# Boolean:: success
#
def create_solr_directories
[pid_dir].each do |path|
- FileUtils.mkdir_p(path) unless File.exists?(path)
+ FileUtils.mkdir_p(path) unless File.exist?(path)
end
end
private