Java Ruby client

This ruby client provides resource for installing JDK into a JAVA_HOME

Example: Install JAVA into JAVA_HOME location

require 'oracle-java'

secret = Mint::Secret.new("welcome1")
puts "Secret: #{secret.inspect}"

host=LASRpcUtils::Host.new('appserver1.mintpress.io', connect_user: 'oracle', final_user: 'oracle')

java_opts={
      version: '1.8.0_172',
      java_home: '/oracle/app/java',
      owner: 'oracle',
      group: 'oinstall',
      software_stage: '/media/stage/jdk/jdk-8u172-linux-x64.tar.gz'
}

# Installation Class
java_installation = MintPress::OracleJava::Installation.new(java_opts, host: host)

# Perform the software installation
java_installation.install

# Get the installed version
puts java_installation.installed_version

License & Authors

  • Author:: LimePoint (support@limepoint.com)

# MintPress® - Automation and Configuration Management
#
# Copyright © 2014 LimePoint. All rights reserved.
#
# This program and its contents are confidential and owned by LimePoint.
# Only licenced users are permitted to access and use of this file.
# This program (or any part of it) may not be disclosed, copied or used
# except as expressly permitted in LimePoint’s End User Licence Agreement.
#
# LimePoint® and MintPress® are Registered Trademarks of LimePoint IP Limited.
# For more information contact LimePoint at http://www.limepoint.com