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
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-core-1.45.0/lib/fog/account.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-core-2.1.0/lib/fog/account.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-core-1.45.0/lib/fog/account.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-core-1.45.0/lib/fog/account.rb
fog-core-2.1.0 lib/fog/account.rb
fog-core-2.0.0 lib/fog/account.rb
fog-core-1.45.0 lib/fog/account.rb
fog-core-1.44.3 lib/fog/account.rb
fog-core-1.44.2 lib/fog/account.rb
fog-core-1.44.1 lib/fog/account.rb
fog-core-1.44.0 lib/fog/account.rb
fog-core-1.43.0 lib/fog/account.rb
fog-core-1.42.0 lib/fog/account.rb
fog-core-1.41.0 lib/fog/account.rb
fog-core-1.40.1 lib/fog/account.rb
fog-core-1.40.0 lib/fog/account.rb
fog-core-1.39.0 lib/fog/account.rb
fog-core-1.38.0 lib/fog/account.rb
fog-core-1.37.0 lib/fog/account.rb
fog-core-1.36.0 lib/fog/account.rb