Sha256: ed8f57dfbee542c1d097a77522ef3fcf450a544358972edb6ad8d341416bd24f

Contents?: true

Size: 634 Bytes

Versions: 10

Compression:

Stored size: 634 Bytes

Contents

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

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

    def services
      Fog::Ovirt.services
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-ovirt-2.0.3 lib/fog/bin/ovirt.rb
fog-ovirt-2.0.2 lib/fog/bin/ovirt.rb
fog-ovirt-2.0.1 lib/fog/bin/ovirt.rb
fog-ovirt-2.0.0 lib/fog/bin/ovirt.rb
fog-ovirt-1.2.5 lib/fog/bin/ovirt.rb
fog-ovirt-1.2.4 lib/fog/bin/ovirt.rb
fog-ovirt-1.2.3 lib/fog/bin/ovirt.rb
fog-ovirt-1.2.2 lib/fog/bin/ovirt.rb
fog-ovirt-1.2.1 lib/fog/bin/ovirt.rb
fog-ovirt-1.2.0 lib/fog/bin/ovirt.rb