Class: OpsManagerUiDrivers::Version17::Settings::Vsphere

Inherits:
Object
  • Object
show all
Defined in:
lib/ops_manager_ui_drivers/version17/settings.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_settings) ⇒ Vsphere

Returns a new instance of Vsphere.



46
47
48
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 46

def initialize(test_settings)
  @test_settings = test_settings
end

Class Method Details

.works_with?(iaas_type) ⇒ Boolean

Returns:

  • (Boolean)


42
43
44
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 42

def self.works_with?(iaas_type)
  iaas_type == 'vsphere'
end

Instance Method Details

#advanced_infrastructure_config_fieldsObject



64
65
66
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 64

def advanced_infrastructure_config_fields
  { }
end

#iaas_configuration_fieldsObject



50
51
52
53
54
55
56
57
58
59
60
61
62
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 50

def iaas_configuration_fields
  {
    'vcenter_ip'                   => test_settings.ops_manager.vcenter.creds.ip,
    'vcenter_username'             => test_settings.ops_manager.vcenter.creds.username,
    'vcenter_password'             => test_settings.ops_manager.vcenter.creds.password,
    'datacenter'                   => test_settings.ops_manager.vcenter.datacenter,
    'ephemeral_datastores_string'  => test_settings.ops_manager.vcenter.ephemeral_datastore,
    'persistent_datastores_string' => test_settings.ops_manager.vcenter.persistent_datastore,
    'bosh_vm_folder'               => test_settings.ops_manager.vcenter.bosh_vm_folder,
    'bosh_template_folder'         => test_settings.ops_manager.vcenter.bosh_template_folder,
    'bosh_disk_path'               => test_settings.ops_manager.vcenter.bosh_disk_path,
  }
end