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/volume/openstack.rb, line 22
def self.new(args = {})
  @openstack_auth_uri = URI.parse(args[:openstack_auth_url]) if args[:openstack_auth_url]
  service = if inspect == 'Fog::Volume::OpenStack'
              Fog::Volume::OpenStack::V2.new(args) || Fog::Volume::OpenStack::V1.new(args)
            else
              super
            end
  service
end