Class: Bosh::Clouds::Provider

Inherits:
Object
  • Object
show all
Defined in:
lib/cloud/provider.rb

Class Method Summary collapse

Class Method Details

.create(cloud_config, director_uuid) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/cloud/provider.rb', line 3

def self.create(cloud_config, director_uuid)
  if cloud_config.fetch('external_cpi',{}).fetch('enabled', false)
    ExternalCpiProvider.create(cloud_config['external_cpi'], director_uuid)
  else
    PluginCloudProvider.create(cloud_config['plugin'], cloud_config['properties'])
  end
end