Sha256: 05249e8ba3d27bce9586c711b6b826ce46462793b5e339ddb2cdb435154f35a5

Contents?: true

Size: 413 Bytes

Versions: 26

Compression:

Stored size: 413 Bytes

Contents

if abiquo_installed?

def java_ok?
  log = AETK::Log.instance
  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

26 entries across 12 versions & 1 rubygems

Version Path
abiquo-etk-0.6.4 lib/checks/1.7.6/java.rb
abiquo-etk-0.6.4 lib/checks/1.7.5/java.rb
abiquo-etk-0.6.4 lib/checks/1.8.0/java.rb
abiquo-etk-0.6.3 lib/checks/1.8.0/java.rb
abiquo-etk-0.6.3 lib/checks/1.7.6/java.rb
abiquo-etk-0.6.3 lib/checks/1.7.5/java.rb
abiquo-etk-0.6.2 lib/checks/1.7.5/java.rb
abiquo-etk-0.6.2 lib/checks/1.8.0/java.rb
abiquo-etk-0.6.2 lib/checks/1.7.6/java.rb
abiquo-etk-0.6.1 lib/checks/1.7.5/java.rb
abiquo-etk-0.6.1 lib/checks/1.7.6/java.rb
abiquo-etk-0.6.1 lib/checks/1.8.0/java.rb
abiquo-etk-0.6.0 lib/checks/1.8.0/java.rb
abiquo-etk-0.6.0 lib/checks/1.7.5/java.rb
abiquo-etk-0.6.0 lib/checks/1.7.6/java.rb
abiquo-etk-0.5.9 lib/checks/1.7.5/java.rb
abiquo-etk-0.5.9 lib/checks/1.8.0/java.rb
abiquo-etk-0.5.9 lib/checks/1.7.6/java.rb
abiquo-etk-0.5.8 lib/checks/1.8.0/java.rb
abiquo-etk-0.5.8 lib/checks/1.7.6/java.rb