Sha256: 78ffbb19bd897db44fb7dde4adde0572266cbbaaa5fa55644c2d440b6aa97257

Contents?: true

Size: 259 Bytes

Versions: 6

Compression:

Stored size: 259 Bytes

Contents

require 'rbconfig'

module Sunspot
  module Solr
    module Java
      NULL_DEVICE = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL' : '/dev/null'

      def self.installed?
        system "java -version >#{NULL_DEVICE} 2>&1"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
qiny_sunspot_solr-2.1.0 lib/sunspot/solr/java.rb
sunspot_solr-jts-2.2.0 lib/sunspot/solr/java.rb
sunspot_solr-jts-2.2.0.rc1 lib/sunspot/solr/java.rb
sunspot_solr-2.2.0 lib/sunspot/solr/java.rb
sunspot_solr-2.1.1 lib/sunspot/solr/java.rb
sunspot_solr-2.1.0 lib/sunspot/solr/java.rb