module OpsManagerUiDrivers::Version19::Settings

Public Class Methods

build_browser_command(command, arg) click to toggle source
# File lib/ops_manager_ui_drivers/version19/settings.rb, line 16
def self.build_browser_command(command, arg)
  {
    'browser_command' => command,
    'browser_arg' => arg,
  }
end
for(test_settings) click to toggle source
# File lib/ops_manager_ui_drivers/version19/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