class Cyoi::Providers::Clients::VsphereProviderClient

Public Instance Methods

setup_fog_connection() click to toggle source

Construct a Fog::Compute object Uses attributes which normally originates from settings.provider

# File lib/cyoi/providers/clients/vsphere_provider_client.rb, line 9
def setup_fog_connection
  configuration = Fog.symbolize_credentials(attributes.credentials)
  configuration[:provider] = "vSphere"
  @fog_compute = Fog::Compute.new(configuration)
end