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
- #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.
49 50 51 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 49 def initialize(test_settings) @test_settings = test_settings end |
Class Method Details
.works_with?(iaas_type) ⇒ Boolean
45 46 47 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 45 def self.works_with?(iaas_type) iaas_type == 'vsphere' end |
Instance Method Details
#advanced_infrastructure_config_fields ⇒ Object
66 67 68 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 66 def advanced_infrastructure_config_fields {} end |
#iaas_configuration_fields ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 64 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 53 def iaas_configuration_fields { 'vcenter_ip' => test_settings.dig('ops_manager', 'vcenter', 'creds', 'ip'), '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'), 'datastores_string' => test_settings.dig('ops_manager', 'vcenter', 'persistent_datastore'), 'microbosh_vm_folder' => test_settings.dig('ops_manager', 'vcenter', 'bosh_vm_folder'), 'microbosh_template_folder' => test_settings.dig('ops_manager', 'vcenter', 'bosh_template_folder'), 'microbosh_disk_path' => test_settings.dig('ops_manager', 'vcenter', 'bosh_disk_path'), } end |