Sha256: 2f03c0d4ac7dc0f9fb3c525db9cff1bea2b06aee5548f94966e6c9a6e8e284a1

Contents?: true

Size: 566 Bytes

Versions: 12

Compression:

Stored size: 566 Bytes

Contents

# Copyright (c) 2012-2013 Stark & Wayne, LLC

module Bosh; end

module Bosh::Providers
  extend self
  # returns a BOSH provider (CPI) specific object
  # with helpers related to that provider
  def for_bosh_provider_name(provider_name, fog_compute)
    case provider_name.to_sym
    when :aws
      require "bosh/providers/aws"
      Bosh::Providers::AWS.new(fog_compute)
    when :openstack
      require "bosh/providers/openstack"
      Bosh::Providers::OpenStack.new(fog_compute)
    else
      raise "please support #{provider_name} provider"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bosh-bootstrap-0.10.2 lib/bosh/providers.rb
bosh-bootstrap-0.10.1 lib/bosh/providers.rb
bosh-bootstrap-0.10.0 lib/bosh/providers.rb
bosh-bootstrap-0.9.0 lib/bosh/providers.rb
bosh-bootstrap-0.8.2 lib/bosh/providers.rb
bosh-bootstrap-0.8.1 lib/bosh/providers.rb
bosh-bootstrap-0.8.0 lib/bosh/providers.rb
bosh-bootstrap-0.7.1 lib/bosh/providers.rb
bosh-bootstrap-0.7.0 lib/bosh/providers.rb
bosh-bootstrap-0.6.0 lib/bosh/providers.rb
bosh-bootstrap-0.5.1 lib/bosh/providers.rb
bosh-bootstrap-0.5.0 lib/bosh/providers.rb