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

Version Path
fog-vsphere-2.5.0 lib/fog/vsphere.rb
fog-vsphere-2.4.0 lib/fog/vsphere.rb
fog-vsphere-2.3.0 lib/fog/vsphere.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-vsphere-2.2.0/lib/fog/vsphere.rb
fog-vsphere-2.2.0 lib/fog/vsphere.rb
fog-vsphere-1.7.0.1 lib/fog/vsphere.rb
fog-vsphere-2.1.1 lib/fog/vsphere.rb
fog-vsphere-2.1.0 lib/fog/vsphere.rb
fog-vsphere-2.0.1 lib/fog/vsphere.rb
fog-vsphere-2.0.0 lib/fog/vsphere.rb
fog-vsphere-1.13.1 lib/fog/vsphere.rb
fog-vsphere-1.13.0 lib/fog/vsphere.rb
fog-vsphere-1.12.0 lib/fog/vsphere.rb
fog-vsphere-1.11.3 lib/fog/vsphere.rb
fog-vsphere-1.11.2 lib/fog/vsphere.rb
fog-vsphere-1.11.1 lib/fog/vsphere.rb
fog-vsphere-1.11.0 lib/fog/vsphere.rb
fog-vsphere-1.10.0 lib/fog/vsphere.rb