class Fog::Volume::OpenStack

Public Class Methods

new(args = {}) click to toggle source

Fog::Image::OpenStack.new will return a Fog::Volume::OpenStack::V2 or a Fog::Volume::OpenStack::V1,

choosing the V2 by default, as V1 is deprecated since OpenStack Juno
Calls superclass method
# File lib/fog/openstack/volume.rb, line 19
def self.new(args = {})
  @openstack_auth_uri = URI.parse(args[:openstack_auth_url]) if args[:openstack_auth_url]
  if self.inspect == 'Fog::Volume::OpenStack'
    service = Fog::Volume::OpenStack::V2.new(args) || Fog::Volume::OpenStack::V1.new(args)
  else
    service = super
  end
  service
end