Sha256: f984d0f1ffebb4c01f6648423f029df766889c134ca2b77d191dbd1b8668be2c

Contents?: true

Size: 697 Bytes

Versions: 25

Compression:

Stored size: 697 Bytes

Contents

module Fog
  module DNS
    class OpenStack < Fog::Service
      autoload :V1, 'fog/dns/openstack/v1'
      autoload :V2, 'fog/dns/openstack/v2'

      # Fog::DNS::OpenStack.new() will return a Fog::DNS::OpenStack::V2 or a Fog::DNS::OpenStack::V1,
      # choosing the latest available
      def self.new(args = {})
        @openstack_auth_uri = URI.parse(args[:openstack_auth_url]) if args[:openstack_auth_url]
        if inspect == 'Fog::DNS::OpenStack'
          service = Fog::DNS::OpenStack::V2.new(args) unless args.empty?
          service ||= Fog::DNS::OpenStack::V1.new(args)
        else
          service = Fog::Service.new(args)
        end
        service
      end
    end
  end
end

Version data entries

25 entries across 23 versions & 3 rubygems

Version Path
fog-openstack-0.1.31 lib/fog/dns/openstack.rb
fog-openstack-0.3.10 lib/fog/dns/openstack.rb
fog-openstack-0.1.30 lib/fog/dns/openstack.rb
fog-openstack-0.1.29 lib/fog/dns/openstack.rb
fog-openstack-0.3.9 lib/fog/dns/openstack.rb
fog-openstack-0.1.28 lib/fog/dns/openstack.rb
fog-openstack-0.3.8 lib/fog/dns/openstack.rb
fog-openstack-0.3.7 lib/fog/dns/openstack.rb
fog-openstack-0.3.6 lib/fog/dns/openstack.rb
fog-openstack-0.3.5 lib/fog/dns/openstack.rb
fog-openstack-0.3.4 lib/fog/dns/openstack.rb
fog-openstack-0.3.3 lib/fog/dns/openstack.rb
fog-openstack-0.3.2 lib/fog/dns/openstack.rb
fog-openstack-0.3.0 lib/fog/dns/openstack.rb
fog-openstack-0.2.4 lib/fog/dns/openstack.rb
fog-openstack-0.2.3 lib/fog/dns/openstack.rb
fog-openstack-0.2.2 lib/fog/dns/openstack.rb
fog-openstack-0.2.1 lib/fog/dns/openstack.rb
fog-openstack-0.2.0 lib/fog/dns/openstack.rb
fog-zj-0.1.28 lib/fog/dns/openstack.rb