Sha256: 576b8f26e1222536097b3683b71b85be24898c3cd0e20df8df86f7f023a88925
Contents?: true
Size: 1.04 KB
Versions: 5
Compression:
Stored size: 1.04 KB
Contents
module OpsManagerUiDrivers module Version12 class OpsManagerDirector def initialize(browser:) @browser = browser end def configure(configuration) Version12::VcenterCredentials.new(browser: browser, product_id: ops_manager_product_id).configure(configuration['vcenter_credentials']) Version12::VsphereConfiguration.new(browser: browser, product_id: ops_manager_product_id).configure(configuration['vsphere_configuration']) Version12::NetworkConfiguration.new(browser: browser, product_id: ops_manager_product_id).configure(configuration['network_configuration']) Version12::NtpServers.new(browser: browser, product_id: ops_manager_product_id).configure(configuration['ntp_configuration']) end private attr_reader :browser def ops_manager_product_id @ops_manager_product_id ||= begin browser.visit '/' browser.find('#show-microbosh-configure-action')['href'].gsub('/components/', '').gsub(%r{/.*}, '') end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems