Class: OpsManagerUiDrivers::Version16::Settings::Vsphere

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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(test_settings) ⇒ Vsphere



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

def initialize(test_settings)
  @test_settings = test_settings
end

Class Method Details

.works_with?(iaas_type) ⇒ Boolean



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

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

Instance Method Details

#advanced_infrastructure_config_fieldsObject



63
64
65
# File 'lib/ops_manager_ui_drivers/version16/settings.rb', line 63

def advanced_infrastructure_config_fields
  { }
end

#iaas_configuration_fieldsObject



50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/ops_manager_ui_drivers/version16/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,
    '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