Sha256: 8836bff67d0b4944291b0edf05c603076b1958ef62fc0e4f48628b20664c1fcc

Contents?: true

Size: 655 Bytes

Versions: 43

Compression:

Stored size: 655 Bytes

Contents

class Vsphere < Fog::Bin
  class << self
    def class_for(key)
      case key
      when :compute
        Fog::Compute::Vsphere
      else
        raise ArgumentError, "Unrecognized service: #{key}"
      end
    end

    def [](service)
      @@connections ||= Hash.new do |hash, key|
        hash[key] = case key
                    when :compute
                      Fog::Compute.new(:provider => 'Vsphere')
                    else
                      raise ArgumentError, "Unrecognized service: #{key.inspect}"
                    end
      end
      @@connections[service]
    end

    def services
      Fog::Vsphere.services
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
fog-vsphere-1.7.0.1 lib/fog/bin/vsphere.rb
fog-vsphere-2.1.1 lib/fog/bin/vsphere.rb
fog-vsphere-2.1.0 lib/fog/bin/vsphere.rb
fog-vsphere-2.0.1 lib/fog/bin/vsphere.rb
fog-vsphere-2.0.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.13.1 lib/fog/bin/vsphere.rb
fog-vsphere-1.13.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.12.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.11.3 lib/fog/bin/vsphere.rb
fog-vsphere-1.11.2 lib/fog/bin/vsphere.rb
fog-vsphere-1.11.1 lib/fog/bin/vsphere.rb
fog-vsphere-1.11.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.10.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.9.2 lib/fog/bin/vsphere.rb
fog-vsphere-1.9.1 lib/fog/bin/vsphere.rb
fog-vsphere-1.9.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.8.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.7.1 lib/fog/bin/vsphere.rb
fog-vsphere-1.7.0 lib/fog/bin/vsphere.rb
fog-vsphere-1.6.0 lib/fog/bin/vsphere.rb