Sha256: a091a6e4fe7cd6894a88ef38897a0c1eb86ceafd0fd2922e78ab54b225240074

Contents?: true

Size: 386 Bytes

Versions: 12

Compression:

Stored size: 386 Bytes

Contents

if abiquo_installed?

def java_ok?
  if not File.exist? JAVA_BIN
    Log.error "Java binary not found in #{JAVA_BIN}"
    return false
  end

  if `java -version 2>&1 | grep '64-Bit Server'`.empty?
    Log.error "Java 64-Bit runtime not found"
    return false
  end

  return true
end

puts "Java:".bold.ljust(40) + (java_ok? ? "64 Bit Runtime".green.bold : "Not Found".red.bold)

end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
abiquo-etk-0.4.25 lib/checks/java.rb
abiquo-etk-0.4.24 lib/checks/java.rb
abiquo-etk-0.4.23 lib/checks/java.rb
abiquo-etk-0.4.22 lib/checks/java.rb
abiquo-etk-0.4.20 lib/checks/java.rb
abiquo-etk-0.4.19 lib/checks/java.rb
abiquo-etk-0.4.18 lib/checks/java.rb
abiquo-etk-0.4.17 lib/checks/java.rb
abiquo-etk-0.4.16 lib/checks/java.rb
abiquo-etk-0.4.15 lib/checks/java.rb
abiquo-etk-0.4.14 lib/checks/java.rb
abiquo-etk-0.4.13 lib/checks/java.rb