Module: OpsManagerUiDrivers::Version17::Settings

Defined in:
lib/ops_manager_ui_drivers/version17/settings.rb

Defined Under Namespace

Classes: AWS, OpenStack, Vcloud, Vsphere

Class Method Summary collapse

Class Method Details

.build_browser_command(command, arg) ⇒ Object



15
16
17
18
19
20
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 15

def self.build_browser_command(command, arg)
  {
    'browser_command' => command,
    'browser_arg' => arg,
  }
end

.for(test_settings) ⇒ Object



6
7
8
9
10
11
12
13
# File 'lib/ops_manager_ui_drivers/version17/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