Sha256: 7aa623ab40b0c7a43e8d1b0a10b68af22a9671d6ae11cc448c3905a030988172
Contents?: true
Size: 740 Bytes
Versions: 23
Compression:
Stored size: 740 Bytes
Contents
require 'fog/core' module Fog module Vsphere extend Fog::Provider module Errors class ServiceError < Fog::Errors::Error; end class SecurityError < ServiceError; end class NotFound < ServiceError; end end autoload :Compute, File.expand_path('../vsphere/compute', __FILE__) service(:compute, 'Compute') # This helper was originally added as Fog.class_as_string and moved to core but only used here def self.class_from_string(name, default_path = '') const = default_path.empty? ? name.to_s : "#{default_path}::#{name}" klass = const.split('::').inject(Object) { |m, c| m.const_get(c) } return klass unless klass == Object rescue NameError nil end end end
Version data entries
23 entries across 23 versions & 1 rubygems