Sha256: e01893f614d7d47ce8e5c73ea5ac4ad75dfe4bf49df89c87a079d18089ebf85a
Contents?: true
Size: 1.61 KB
Versions: 6
Compression:
Stored size: 1.61 KB
Contents
# frozen_string_literal: true # Author:: Justin Steele (<justin.steele@oracle.com>) # # Copyright (C) 2024, Stephen Pearson # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. module Kitchen module Driver class Oci class Instance # setter methods that populate the details of OCI::Database::Models::CreateDbHomeDetails module DbHomeDetails def database db_home_details.database = database_details end 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 def db_home_display_name db_home_details.display_name = ["dbhome", random_number(10)].compact.join end 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 def db_home_defined_tags db_home_details.defined_tags = config[:defined_tags] end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems