Class: MintPress::OracleEBS::OraInventory
- Inherits:
-
Object
- Object
- MintPress::OracleEBS::OraInventory
- 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
-
#file_name ⇒ Object
Returns the value of attribute file_name.
-
#install_group ⇒ Object
Returns the value of attribute install_group.
-
#inventory_loc ⇒ Object
Returns the value of attribute inventory_loc.
-
#oracle_homes ⇒ Object
Returns the value of attribute oracle_homes.
-
#purge_inventory ⇒ Object
Returns the value of attribute purge_inventory.
Instance Method Summary collapse
-
#check_ora_inventory(endpoint:, transport:) ⇒ Object
check_ora_inventory: Uses the transport provided to parse the oraInst.
- #cleanup_inventory(host:) ⇒ Object
- #copy(sourceInv) ⇒ Object
- #dir_writable?(transport:) ⇒ Boolean
- #dirname ⇒ Object
-
#initialize(inventory_loc:, install_group:, purge_inventory:, file_name: "/etc/oraInst.loc") ⇒ OraInventory
constructor
A new instance of OraInventory.
- #inspect(indent = 0) ⇒ Object
- #load_oracle_homes(transport:) ⇒ Object
- #purge? ⇒ Boolean
- #readable?(transport:) ⇒ Boolean
- #remove(host:) ⇒ Object
- #to_s(indent = 0) ⇒ Object
- #validate ⇒ Object
- #writable?(transport:) ⇒ Boolean
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_name ⇒ Object
Returns the value of attribute file_name.
#install_group ⇒ Object
Returns the value of attribute install_group.
#inventory_loc ⇒ Object
Returns the value of attribute inventory_loc.
#oracle_homes ⇒ Object
Returns the value of attribute oracle_homes.
#purge_inventory ⇒ Object
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.