Sha256: 5821969bb6b9fa42180a0fc054a3ebca6538b5de91a2ef8dacff0a739e87ddba
Contents?: true
Size: 706 Bytes
Versions: 4
Compression:
Stored size: 706 Bytes
Contents
require 'ops_manager_ui_drivers/version17/settings' module OpsManagerUiDrivers module Version18 module Settings def self.for(test_settings) iaas_type = test_settings.dig('iaas_type') settings_class = [Vcloud, Vsphere, AWS, OpenStack].find do |klass| klass.works_with?(iaas_type) end or fail("Unsupported IaaS: #{iaas_type.inspect}") settings_class.new(test_settings) end class Vcloud < Version17::Settings::Vcloud end class Vsphere < Version17::Settings::Vsphere end class AWS < Version17::Settings::AWS end class OpenStack < Version17::Settings::OpenStack end end end end
Version data entries
4 entries across 4 versions & 1 rubygems