Sha256: b9c648e5e197eb6df31241c416a0902de82b022106e0a9203800076d12fa01c8

Contents?: true

Size: 1.39 KB

Versions: 11

Compression:

Stored size: 1.39 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 launch details common to all instance models
        module CommonLaunchDetails
          def compartment_id
            launch_details.compartment_id = oci.compartment
          end

          def availability_domain
            launch_details.availability_domain = config[:availability_domain]
          end

          def defined_tags
            launch_details.defined_tags = config[:defined_tags]
          end

          def shape
            launch_details.shape = config[:shape]
          end

          def freeform_tags
            launch_details.freeform_tags = process_freeform_tags
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
kitchen-oci-1.26.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.25.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.24.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.23.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.22.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.21.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.20.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.19.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.18.1 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.18.0 lib/kitchen/driver/oci/instance/common.rb
kitchen-oci-1.17.0 lib/kitchen/driver/oci/instance/common.rb