Module: OpsManagerUiDrivers::Version18::Settings
- Defined in:
- lib/ops_manager_ui_drivers/version18/settings.rb
Defined Under Namespace
Classes: AWS, Azure, Google, OpenStack, Vcloud, Vsphere
Class Method Summary
collapse
Class Method Details
.build_browser_command(command, arg) ⇒ Object
16
17
18
19
20
21
|
# File 'lib/ops_manager_ui_drivers/version18/settings.rb', line 16
def self.build_browser_command(command, arg)
{
'browser_command' => command,
'browser_arg' => arg,
}
end
|
.for(test_settings) ⇒ Object
7
8
9
10
11
12
13
14
|
# File 'lib/ops_manager_ui_drivers/version18/settings.rb', line 7
def self.for(test_settings)
iaas_type = test_settings.dig('iaas_type')
settings_class =
[Vcloud, Vsphere, AWS, OpenStack, Google, Azure].find do |klass|
klass.works_with?(iaas_type)
end or fail("Unsupported IaaS: #{iaas_type.inspect}")
settings_class.new(test_settings)
end
|