Class: Bosh::Clouds::InternalCpiProvider
- Inherits:
-
Object
- Object
- Bosh::Clouds::InternalCpiProvider
- Defined in:
- lib/cloud/provider.rb
Class Method Summary collapse
Class Method Details
.create(plugin, options) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/cloud/provider.rb', line 15 def self.create(plugin, ) begin require "cloud/#{plugin}" rescue LoadError => error raise CloudError, "Could not load Cloud Provider Plugin: #{plugin}, with error #{error.inspect}" end InternalCpi.new(Bosh::Clouds.const_get(plugin.capitalize).new()) end |