Class: OpsManagerUiDrivers::Version15::Settings::Vsphere
- Inherits:
-
Object
- Object
- OpsManagerUiDrivers::Version15::Settings::Vsphere
- Defined in:
- lib/ops_manager_ui_drivers/version15/settings.rb
Class Method Summary collapse
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(test_settings) ⇒ Vsphere
constructor
A new instance of Vsphere.
Constructor Details
#initialize(test_settings) ⇒ Vsphere
Returns a new instance of Vsphere.
42 43 44 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 42 def initialize(test_settings) @test_settings = test_settings end |
Class Method Details
.works_with?(iaas_type) ⇒ Boolean
38 39 40 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 38 def self.works_with?(iaas_type) iaas_type == 'vsphere' end |
Instance Method Details
#fields ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 46 def 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.datastore, 'microbosh_vm_folder' => test_settings.ops_manager.vcenter.microbosh_vm_folder, 'microbosh_template_folder' => test_settings.ops_manager.vcenter.microbosh_template_folder, 'microbosh_disk_path' => test_settings.ops_manager.vcenter.microbosh_disk_path, } end |