Class: OpsManagerUiDrivers::Version15::Settings::Vcloud
- Inherits:
-
Object
- Object
- OpsManagerUiDrivers::Version15::Settings::Vcloud
- Defined in:
- lib/ops_manager_ui_drivers/version15/settings.rb
Class Method Summary collapse
Instance Method Summary collapse
- #fields ⇒ Object
-
#initialize(test_settings) ⇒ Vcloud
constructor
A new instance of Vcloud.
Constructor Details
#initialize(test_settings) ⇒ Vcloud
Returns a new instance of Vcloud.
16 17 18 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 16 def initialize(test_settings) @test_settings = test_settings end |
Class Method Details
.works_with?(iaas_type) ⇒ Boolean
12 13 14 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 12 def self.works_with?(iaas_type) iaas_type == 'vcloud' end |
Instance Method Details
#fields ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ops_manager_ui_drivers/version15/settings.rb', line 20 def fields { 'vcd_url' => test_settings.ops_manager.vcloud.creds.url, 'organization' => test_settings.ops_manager.vcloud.creds.organization, 'vcd_username' => test_settings.ops_manager.vcloud.creds.user, 'vcd_password' => test_settings.ops_manager.vcloud.creds.password, 'datacenter' => test_settings.ops_manager.vcloud.vdc.name, 'storage_profile' => test_settings.ops_manager.vcloud.vdc.storage_profile, 'catalog_name' => test_settings.ops_manager.vcloud.vdc.catalog_name, } end |