Module: Bosh::Stemcell::Infrastructure
- Defined in:
- lib/bosh/stemcell/infrastructure.rb
Defined Under Namespace
Classes: Aws, Azure, Base, NullInfrastructure, OpenStack, Softlayer, Vcloud, Vsphere, Warden
Class Method Summary collapse
Class Method Details
.for(name) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/bosh/stemcell/infrastructure.rb', line 3 def self.for(name) case name when 'openstack' OpenStack.new when 'aws' Aws.new when 'vsphere' Vsphere.new when 'warden' Warden.new when 'vcloud' Vcloud.new when 'azure' Azure.new when 'softlayer' Softlayer.new when 'null' NullInfrastructure.new else raise ArgumentError.new("invalid infrastructure: #{name}") end end |