Sha256: 8b91646a1c77c04978fa7d12cb01c38990b4b66551b391bc04e887a9f02c65b8

Contents?: true

Size: 610 Bytes

Versions: 14

Compression:

Stored size: 610 Bytes

Contents

module Fog
  module DNS
    class OpenStack < Fog::Service
      # 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

14 entries across 14 versions & 1 rubygems

Version Path
fog-openstack-0.1.25 lib/fog/dns/openstack.rb
fog-openstack-0.1.24 lib/fog/dns/openstack.rb
fog-openstack-0.1.23 lib/fog/dns/openstack.rb
fog-openstack-0.1.22 lib/fog/dns/openstack.rb
fog-openstack-0.1.21 lib/fog/dns/openstack.rb
fog-openstack-0.1.20 lib/fog/dns/openstack.rb
fog-openstack-0.1.19 lib/fog/dns/openstack.rb
fog-openstack-0.1.18 lib/fog/dns/openstack.rb
fog-openstack-0.1.17 lib/fog/dns/openstack.rb
fog-openstack-0.1.15 lib/fog/dns/openstack.rb
fog-openstack-0.1.14 lib/fog/dns/openstack.rb
fog-openstack-0.1.13 lib/fog/dns/openstack.rb
fog-openstack-0.1.12 lib/fog/dns/openstack.rb
fog-openstack-0.1.11 lib/fog/dns/openstack.rb