Module: Sunspot::Solr::Java

Defined in:
sunspot_solr/lib/sunspot/solr/java.rb

Class Method Summary (collapse)

Class Method Details

+ (Boolean) installed?

Returns:

  • (Boolean)


4
5
6
7
# File 'sunspot_solr/lib/sunspot/solr/java.rb', line 4

def self.installed?
  `java -version &> /dev/null`
  $?.success?
end