Class: Bosh::Clouds::Provider
- Inherits:
-
Object
- Object
- Bosh::Clouds::Provider
- 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.has_key?('provider') ExternalCpiProvider.create(cloud_config['provider']['path'], director_uuid) else PluginCloudProvider.create(cloud_config['plugin'], cloud_config['properties']) end end |