Class: MintPress::OracleDatabase::PatchSet
- Inherits:
-
Object
- Object
- MintPress::OracleDatabase::PatchSet
- Includes:
- MintLogger, Mixins::Properties, MintPress::OracleWeblogic::Utils, TSort
- Defined in:
- src/oracle-database/lib/oracle-database/model/database/patchset.rb
Overview
Properties (Read/Write)
-
#name ⇒ String (Default Value: 'default patchset')
Property Attributes- default ⇒ 'default patchset'
35
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 35 property :name, type: String, default: 'default patchset'
-
#patches ⇒ Hash of ⇒ MintPress::OracleDatabase::Patch
The set of patches contained within this patchset
Property Attributes37
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 37 property :patches, type: MintPress::OracleDatabase::Patch, hash: true
-
#installation ⇒ [MintPress::OracleDatabaseClient::Installation,MintPress::OracleDatabase::Installation]
If all patches are on an installation, we provide this as a convinience!
Property Attributes- required ⇒ false
39
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 39 property :installation, type: [MintPress::OracleDatabaseClient::Installation,MintPress::OracleDatabase::Installation], required: false
-
#host ⇒ MintPress::Infrastructure::Host (Default Value: Proc.new {
r = nil
if self.get_property(:installation) and self.installation.host
r = self.installation.host
elsif self.get_property(:default_localhost)
r = MintPress::Infrastructure::Localhost.new(final_user: self.default_localhost_user)
end
r
})
Much like patch itself, we inhiert this from any parent we have - see there for the logic...
Property Attributes- default ⇒ Proc.new { r = nil if self.get_property(:installation) and self.installation.host r = self.installation.host elsif self.get_property(:default_localhost) r = MintPress::Infrastructure::Localhost.new(final_user: self.default_localhost_user) end r }
- no_backref ⇒ true
- parallel ⇒ true
- disposition ⇒ :requires
42 43 44 45 46 47 48 49 50
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 42 property :host, type: MintPress::Infrastructure::Host, default: Proc.new { r = nil if self.get_property(:installation) and self.installation.host r = self.installation.host elsif self.get_property(:default_localhost) r = MintPress::Infrastructure::Localhost.new(final_user: self.default_localhost_user) end r }, no_backref: true, parallel: true, disposition: :requires
-
#oracle_home ⇒ Pathname (Default Value: Proc.new { r = nil
if installation.respond_to?(:oracle_home)
r = installation.oracle_home
end
r
})
Property Attributes- from ⇒ String
- default ⇒ Proc.new { r = nil if installation.respond_to?(:oracle_home) r = installation.oracle_home end r }
60 61 62 63 64 65
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 60 property :oracle_home, type: Pathname, from: String, default: Proc.new { r = nil if installation.respond_to?(:oracle_home) r = installation.oracle_home end r }
-
#java_home ⇒ Pathname (Default Value: Proc.new { installation.java_home })
Default java_home for child patches
Property Attributes- from ⇒ String
- default ⇒ Proc.new { installation.java_home }
67
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 67 property :java_home, type: Pathname, from: String, default: Proc.new { installation.java_home }
-
#inventory_location ⇒ Pathname (Default Value: Proc.new { installation.inventory_location })
Default inventory_location for child patches
Property Attributes- from ⇒ String
- default ⇒ Proc.new { installation.inventory_location }
69
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 69 property :inventory_location, type: Pathname, from: String, default: Proc.new { installation.inventory_location }
-
#target_tmp_dir ⇒ Pathname (Default Value: Proc.new { installation.target_tmp_dir })
Default target_tmp_dir for child patches
Property Attributes- from ⇒ String
- default ⇒ Proc.new { installation.target_tmp_dir }
71
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 71 property :target_tmp_dir, type: Pathname, from: String, default: Proc.new { installation.target_tmp_dir }
-
#version ⇒ String (Default Value: Proc.new { installation.version })
Default version for child patches
Property Attributes- default ⇒ Proc.new { installation.version }
73
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 73 property :version, type: String, default: Proc.new { installation.version }
-
#group ⇒ String (Default Value: Proc.new { installation.group })
Default group for child patches
Property Attributes- default ⇒ Proc.new { installation.group }
75
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 75 property :group, type: String, default: Proc.new { installation.group }
-
#opatch_autoupdate_file ⇒ Pathname (Default Value: Proc.new { installation.opatch_autoupdate_file })
Default opatch_autoupdate_file for child patches
Property Attributes- from ⇒ String
- default ⇒ Proc.new { installation.opatch_autoupdate_file }
77
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 77 property :opatch_autoupdate_file, type: Pathname, from: String, default: Proc.new { installation.opatch_autoupdate_file }
-
#target_oracle_home ⇒ Pathname (Default Value: Proc.new { installation.target_oracle_home })
Default target_oracle_home for child patches
Property Attributes- from ⇒ String
- default ⇒ Proc.new { installation.target_oracle_home }
79
# File 'src/oracle-database/lib/oracle-database/model/database/patchset.rb', line 79 property :target_oracle_home, type: Pathname, from: String, default: Proc.new { installation.target_oracle_home }
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
Attributes included from Mixins::Properties
#autopush_set_cache, #dynamic_create, #harvest_on_access, #harvest_undefined_only, #harvested, #tree_root
Instance Method Summary collapse
-
#apply ⇒ void
Apply patches in oredr of dependencies.
-
#empty_mbean?(empty_stack: []) ⇒ Boolean
Always return true for empty_mbean for installations - it absoutely has no mbeans!.
-
#initialize(opts) ⇒ PatchSet
constructor
A new instance of PatchSet.
-
#order ⇒ Object
Order patchset based on the 'apply_before' and 'apply_after' properties of each patch.
- #rollback ⇒ Object
- #tsort_each_child(key, &block) ⇒ Object
- #tsort_each_node(&block) ⇒ Object
Methods included from Mixins::Properties
#[], #[]=, #add_validate_report_result, #armour_set_property, #array_contains?, #array_is_a?, #check_autopush, #check_stack_overflow, #clone_property_object, #cloner_handle_single_property, #coerce_single, #contains_as_string?, #display_validate_report_result, #double_initialize?, #dump_to_hash, #find_parent, #find_parent_by_identity, #generate_accessor_functions, #get_canonical_renamed, #get_from_opts, #get_my_name, #get_property, #get_property_item, #has?, included, #initialize_validate_report, #inspect, #is_cloned_object?, #is_mintpress_object?, #is_probably_canonical?, #is_set?, #local_debug, #local_info, #local_verbose, #mintpress_property_definitions, #place_object_by_identity, #process_properties, #prop_set?, #property, #property_definitions, #property_details, #property_is_simple_object?, #push_root!, #require_property, #require_update, #retrieve_docstring, #sanitize, #set_map_dirty, #set_property, #set_property_item, #show_short_array, #strip_defaults!, #synchronize, #uncloned_property_definitions, #update_map, #validate, #validate_generic, #validate_properties, #validate_property, #validate_required, #version_allowed?, #weakref
Methods included from MintLogger::Utils::Common
#boolean_val, #has_value?, #no_value?, #nvl, #path_as_symbol, #ruby_level_to_send
Methods included from MintPress::OracleWeblogic::Utils
#activate_list, #already_traversed, #announce_self, #bean_type, #build_activate_list, #clear_property_sheet_cache, #create_generic, #create_mbean_components, #delete, #destroy_generic, #execute_script, #exists?, #fast_ls_all, #fast_ls_folder, #fast_ls_object, #fast_ls_object_map, #find_cluster, #find_runtime_path_in_rest, #find_server, #full_url, #get, #get_all_self_names, #get_identity, #get_local_wlst_session, #get_matching_self_names, #get_property_from_target, #get_property_from_target_rest, #get_property_from_target_wlst, #get_property_from_target_wlst_impl, #get_property_sheet, #get_rest_item, #get_rest_url_for_parent, #get_rest_url_for_self, #get_servers, #get_servers_rest, #get_servers_wlst, #get_wl_home, #globmatch?, #handle_create, #http_delete, #http_get, #http_post, #http_put, included, #invalidate_session, #is_meta_object?, #longclass, #massage_return, #mbean_components, #mbean_exists?, #mbean_lookup, #mbean_properties, #mbean_to_hash, #meta_list?, #my_short_name, #perform_method_generic, #perform_runtime_call_generic_rest, #perform_runtime_method_generic, #post, #raise_http_exception, #remove, #request_headers, #reset_activate_list, #rest_activate_change, #rest_create_generic, #rest_create_mbean_components, #rest_destroy_self, #rest_edit_url, #rest_has_changes, #rest_idempotent_create, #rest_locked, #rest_nonedit_url, #rest_start_change, #rest_undo_change, #runtime_introspection, #shortclass, #start_with_async, #state_with_net_ping, #stop_with_async, #to_nested, #wlst_cd_to, #wlst_create_generic, #wlst_destroy_self, #wlst_find_object, #wlst_find_parent_object, #wlst_generic_mbean_update_all, #wlst_idempotent_create, #wlst_update_mbean
Constructor Details
#initialize(opts) ⇒ PatchSet
Instance Method Details
#apply ⇒ void
This method returns an undefined value.
Apply patches in oredr of dependencies