Class: Fog::Image::OpenStack
- Inherits:
-
Service
- Object
- Service
- Fog::Image::OpenStack
- Defined in:
- lib/fog/image/openstack.rb,
lib/fog/image/openstack/v1.rb,
lib/fog/image/openstack/v2.rb,
lib/fog/image/openstack/v1/models/image.rb,
lib/fog/image/openstack/v2/models/image.rb,
lib/fog/image/openstack/v1/models/images.rb,
lib/fog/image/openstack/v2/models/images.rb,
lib/fog/image/openstack/v1/requests/get_image.rb,
lib/fog/image/openstack/v2/requests/get_image.rb,
lib/fog/image/openstack/v1/requests/set_tenant.rb,
lib/fog/image/openstack/v2/requests/set_tenant.rb,
lib/fog/image/openstack/v2/requests/list_images.rb,
lib/fog/image/openstack/v1/requests/create_image.rb,
lib/fog/image/openstack/v1/requests/delete_image.rb,
lib/fog/image/openstack/v1/requests/update_image.rb,
lib/fog/image/openstack/v2/requests/create_image.rb,
lib/fog/image/openstack/v2/requests/delete_image.rb,
lib/fog/image/openstack/v2/requests/update_image.rb,
lib/fog/image/openstack/v2/requests/upload_image.rb,
lib/fog/image/openstack/v2/requests/download_image.rb,
lib/fog/image/openstack/v1/requests/get_image_by_id.rb,
lib/fog/image/openstack/v2/requests/get_image_by_id.rb,
lib/fog/image/openstack/v2/requests/add_tag_to_image.rb,
lib/fog/image/openstack/v2/requests/deactivate_image.rb,
lib/fog/image/openstack/v2/requests/reactivate_image.rb,
lib/fog/image/openstack/v1/requests/get_image_members.rb,
lib/fog/image/openstack/v1/requests/get_shared_images.rb,
lib/fog/image/openstack/v2/requests/get_image_members.rb,
lib/fog/image/openstack/v2/requests/get_shared_images.rb,
lib/fog/image/openstack/v1/requests/list_public_images.rb,
lib/fog/image/openstack/v2/requests/get_member_details.rb,
lib/fog/image/openstack/v1/requests/add_member_to_image.rb,
lib/fog/image/openstack/v2/requests/add_member_to_image.rb,
lib/fog/image/openstack/v2/requests/update_image_member.rb,
lib/fog/image/openstack/v1/requests/update_image_members.rb,
lib/fog/image/openstack/v2/requests/remove_tag_from_image.rb,
lib/fog/image/openstack/v1/requests/remove_member_from_image.rb,
lib/fog/image/openstack/v2/requests/remove_member_from_image.rb,
lib/fog/image/openstack/v1/requests/list_public_images_detailed.rb
Defined Under Namespace
Class Method Summary collapse
-
.new(args = {}) ⇒ Object
Fog::Image::OpenStack.new() will return a Fog::Image::OpenStack::V2 or a Fog::Image::OpenStack::V1, choosing the latest available.
Class Method Details
.new(args = {}) ⇒ Object
Fog::Image::OpenStack.new() will return a Fog::Image::OpenStack::V2 or a Fog::Image::OpenStack::V1,
choosing the latest available
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/fog/image/openstack.rb', line 11 def self.new(args = {}) @openstack_auth_uri = URI.parse(args[:openstack_auth_url]) if args[:openstack_auth_url] if inspect == 'Fog::Image::OpenStack' service = Fog::Image::OpenStack::V2.new(args) unless args.empty? service ||= Fog::Image::OpenStack::V1.new(args) else service = Fog::Service.new(args) end service end |