Class: OpsManagerUiDrivers::Version17::Settings::Vsphere
- Inherits:
-
Object
- Object
- OpsManagerUiDrivers::Version17::Settings::Vsphere
- Defined in:
- lib/ops_manager_ui_drivers/version17/settings.rb
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
- #advanced_infrastructure_config_fields ⇒ Object
- #iaas_configuration_fields ⇒ Object
-
#initialize(test_settings) ⇒ Vsphere
constructor
A new instance of Vsphere.
Constructor Details
#initialize(test_settings) ⇒ Vsphere
Returns a new instance of Vsphere.
53 54 55 |
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 53 def initialize(test_settings) @test_settings = test_settings end |
Class Method Details
.works_with?(iaas_type) ⇒ Boolean
49 50 51 |
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 49 def self.works_with?(iaas_type) iaas_type == 'vsphere' end |
Instance Method Details
#advanced_infrastructure_config_fields ⇒ Object
71 72 73 |
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 71 def advanced_infrastructure_config_fields {} end |
#iaas_configuration_fields ⇒ Object
57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'lib/ops_manager_ui_drivers/version17/settings.rb', line 57 def iaas_configuration_fields { 'vcenter_host' => vcenter_host(@test_settings), 'vcenter_username' => @test_settings.dig('ops_manager', 'vcenter', 'creds', 'username'), 'vcenter_password' => @test_settings.dig('ops_manager', 'vcenter', 'creds', 'password'), 'datacenter' => @test_settings.dig('ops_manager', 'vcenter', 'datacenter'), 'ephemeral_datastores_string' => @test_settings.dig('ops_manager', 'vcenter', 'ephemeral_datastore'), 'persistent_datastores_string' => @test_settings.dig('ops_manager', 'vcenter', 'persistent_datastore'), 'bosh_vm_folder' => @test_settings.dig('ops_manager', 'vcenter', 'bosh_vm_folder'), 'bosh_template_folder' => @test_settings.dig('ops_manager', 'vcenter', 'bosh_template_folder'), 'bosh_disk_path' => @test_settings.dig('ops_manager', 'vcenter', 'bosh_disk_path'), } end |