Class: MintPress::OracleEBS::OraInventory

Inherits:
Object
  • Object
show all
Includes:
MintLogger
Defined in:
src/oracle-ebs/lib/oracle-ebs/host.rb

Overview

OraInventory: Class to hold the details of the values for the oraInst.loc file (and options to purge the target oraInventory or not.

Properties (Read/Write)

Properties (Read Only)

Constant Summary

Constants included from MintLogger

MintLogger::DEBUG, MintLogger::ERROR, MintLogger::FATAL, MintLogger::INFO, MintLogger::UNKNOWN, MintLogger::VERBOSE, MintLogger::WARN

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from MintLogger::Utils::Common

#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send

Constructor Details

#initialize(inventory_loc:, install_group:, purge_inventory:, file_name: "/etc/oraInst.loc") ⇒ OraInventory

Returns a new instance of OraInventory.

Instance Attribute Details

#file_nameObject

Returns the value of attribute file_name.

#install_groupObject

Returns the value of attribute install_group.

#inventory_locObject

Returns the value of attribute inventory_loc.

#oracle_homesObject

Returns the value of attribute oracle_homes.

#purge_inventoryObject

Returns the value of attribute purge_inventory.

Instance Method Details

#check_ora_inventory(endpoint:, transport:) ⇒ Object

check_ora_inventory: Uses the transport provided to parse the oraInst. On the source system, it reads in the oracle inventory location from the file into the configuration object, ensuring the oracle inventory location it points to matches the configuration supplied. On the target system, if no oraInst.loc file exists it creates it. If it does exist, it ensures the oraInventory in it matches the configuration.

#cleanup_inventory(host:) ⇒ Object

#copy(sourceInv) ⇒ Object

#dir_writable?(transport:) ⇒ Boolean

Returns:

  • (Boolean)

#dirnameObject

#inspect(indent = 0) ⇒ Object

#load_oracle_homes(transport:) ⇒ Object

#purge?Boolean

Returns:

  • (Boolean)

#readable?(transport:) ⇒ Boolean

Returns:

  • (Boolean)

#remove(host:) ⇒ Object

#to_s(indent = 0) ⇒ Object

#validateObject

Raises:

  • (ArgumentError)

#writable?(transport:) ⇒ Boolean

Returns:

  • (Boolean)