Module: OpsManagerUiDrivers::Version15::Settings
- Defined in:
- lib/ops_manager_ui_drivers/version15/settings.rb
Defined Under Namespace
Classes: AWS, OpenStack, Vcloud, Vsphere
Class Method Summary collapse
Class Method Details
.for(test_settings) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 6 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 |