Class: Bosh::Clouds::Provider
- Inherits:
-
Object
- Object
- Bosh::Clouds::Provider
- Defined in:
- lib/cloud/provider.rb
Class Method Summary collapse
Class Method Details
.create(plugin, options) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/cloud/provider.rb', line 4 def self.create(plugin, ) begin require "cloud/#{plugin}" rescue LoadError => error raise CloudError, "Could not load Cloud Provider Plugin: #{plugin}" end Bosh::Clouds.const_get(plugin.capitalize).new() end |