Sha256: 056bf93a3c58cb544fd3df76fddac7e7fca02220fd4fecd32f4f8c3bc6e814aa
Contents?: true
Size: 766 Bytes
Versions: 46
Compression:
Stored size: 766 Bytes
Contents
require 'fog/core' module Fog module Compute autoload :Vsphere, File.expand_path('../vsphere/compute.rb', __FILE__) end module Vsphere extend Fog::Provider module Errors class ServiceError < Fog::Errors::Error; end class SecurityError < ServiceError; end class NotFound < ServiceError; end end 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
46 entries across 44 versions & 2 rubygems