class Fog::Identity::OpenStack
Public Class Methods
new(args = {})
click to toggle source
::new will return a Fog::Identity::OpenStack::V3 by default
# File lib/fog/identity/openstack.rb, line 21 def self.new(args = {}) version = '3' url = Fog.credentials[:openstack_auth_url] || args[:openstack_auth_url] if url uri = URI(url) version = '2.0' if uri.path =~ /v2\.0/ end service = case version when '2.0' Fog::Identity::OpenStack::V2.new(args) else Fog::Identity::OpenStack::V3.new(args) end service end