Sha256: b4cb9ac88f7635b81ce16762da4f0e8d0ab8e032c011dd7da22974976d279c62
Contents?: true
Size: 1.29 KB
Versions: 4
Compression:
Stored size: 1.29 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 end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems