Sha256: df753788125343eff13d96138b2c6911f65857601c2292e8a676997c791dcd3c

Contents?: true

Size: 471 Bytes

Versions: 26

Compression:

Stored size: 471 Bytes

Contents

module Fog
  module Account
    extend Fog::ServicesMixin

    def self.new(orig_attributes)
      attributes = orig_attributes.dup
      provider = attributes.delete(:provider).to_s.downcase.to_sym

      if provider == :stormondemand
        require "fog/account/storm_on_demand"
        Fog::Account::StormOnDemand.new(attributes)
      else
        super(orig_attributes)
      end
    end

    def self.providers
      Fog.services[:account] || []
    end
  end
end

Version data entries

26 entries across 23 versions & 3 rubygems

Version Path
fog-core-1.35.0 lib/fog/account.rb
fog-core-1.34.0 lib/fog/account.rb
fog-core-1.33.0 lib/fog/account.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-core-1.32.1/lib/fog/account.rb
fog-core-1.32.1 lib/fog/account.rb
fog-core-1.32.0 lib/fog/account.rb