Sha256: ef0725a5f5d7817e86cb648b8cb3198b3ed6c3596dd01f8e6194c6921f192bca
Contents?: true
Size: 742 Bytes
Versions: 4
Compression:
Stored size: 742 Bytes
Contents
module Fog module Image class HuaweiCloud < Fog::Service autoload :V1, 'fog/image/huaweicloud/v1' autoload :V2, 'fog/image/huaweicloud/v2' # Fog::Image::HuaweiCloud.new() will return a Fog::Image::HuaweiCloud::V2 or a Fog::Image::HuaweiCloud::V1, # choosing the latest available def self.new(args = {}) @huaweicloud_auth_uri = URI.parse(args[:huaweicloud_auth_url]) if args[:huaweicloud_auth_url] if inspect == 'Fog::Image::HuaweiCloud' service = Fog::Image::HuaweiCloud::V2.new(args) unless args.empty? service ||= Fog::Image::HuaweiCloud::V1.new(args) else service = Fog::Service.new(args) end service end end end end
Version data entries
4 entries across 4 versions & 1 rubygems