Module: Kitchen::Driver::Oci::Instance::DbHomeDetails
- Included in:
- DbaasLaunchDetails
- Defined in:
- lib/kitchen/driver/oci/instance/db_home.rb
Overview
setter methods that populate the details of OCI::Database::Models::CreateDbHomeDetails
Instance Method Summary collapse
- #database ⇒ Object
- #db_home_defined_tags ⇒ Object
- #db_home_display_name ⇒ Object
- #db_home_software_image ⇒ Object
- #db_version ⇒ Object
Instance Method Details
#database ⇒ Object
25 26 27 |
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 25 def database db_home_details.database = database_details end |
#db_home_defined_tags ⇒ Object
45 46 47 |
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 45 def db_home_details. = config[:defined_tags] end |
#db_home_display_name ⇒ Object
35 36 37 |
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 35 def db_home_display_name db_home_details.display_name = ["dbhome", random_number(10)].compact.join end |
#db_home_software_image ⇒ Object
39 40 41 42 43 |
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 39 def db_home_software_image return unless config[:dbaas][:db_software_image_id] db_home_details.database_software_image_id = config[:dbaas][:db_software_image_id] end |
#db_version ⇒ Object
29 30 31 32 33 |
# File 'lib/kitchen/driver/oci/instance/db_home.rb', line 29 def db_version raise "db_version cannot be nil!" if config[:dbaas][:db_version].nil? db_home_details.db_version = config[:dbaas][:db_version] end |