Module: Kitchen::Driver::Oci::Models

Included in:
Kitchen::Driver::Oci
Defined in:
lib/kitchen/driver/oci/models.rb,
lib/kitchen/driver/oci/models/dbaas.rb,
lib/kitchen/driver/oci/models/iscsi.rb,
lib/kitchen/driver/oci/models/compute.rb,
lib/kitchen/driver/oci/models/paravirtual.rb

Overview

models definitions

Defined Under Namespace

Classes: Compute, Dbaas, Iscsi, Paravirtual

Instance Method Summary collapse

Instance Method Details

#instance_class(config, state, oci, api, action) ⇒ Object



28
29
30
# File 'lib/kitchen/driver/oci/models.rb', line 28

def instance_class(config, state, oci, api, action)
  Oci::Models.const_get(config[:instance_type].capitalize).new(config, state, oci, api, action)
end

#volume_class(type, config, state, oci, api) ⇒ Object



32
33
34
# File 'lib/kitchen/driver/oci/models.rb', line 32

def volume_class(type, config, state, oci, api)
  Oci::Models.const_get(volume_attachment_type(type)).new(config, state, oci, api)
end