Sha256: 1ebd7800de12b4b717510e0027a8c7cea8cee40e506a33338911a91c6aac09b9

Contents?: true

Size: 722 Bytes

Versions: 16

Compression:

Stored size: 722 Bytes

Contents

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

    def [](service)
      @@connections ||= Hash.new do |hash, key|
        hash[key] = case key
        when :compute
          Fog::Logger.warning("Serverlove[:compute] is not recommended, use Compute[:serverlove] for portability")
          Fog::Compute.new(:provider => 'Serverlove')
        else
          raise ArgumentError, "Unrecognized service: #{key.inspect}"
        end
      end
      @@connections[service]
    end

    def services
      Fog::Serverlove.services
    end
  end
end

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/bin/serverlove.rb
fog-1.26.0 lib/fog/bin/serverlove.rb
fog-1.25.0 lib/fog/bin/serverlove.rb
nsidc-fog-1.24.1 lib/fog/bin/serverlove.rb
fog-1.24.0 lib/fog/bin/serverlove.rb
ns-fog-1.22.11 lib/fog/bin/serverlove.rb
ns-fog-1.22.10 lib/fog/bin/serverlove.rb
ns-fog-1.22.9 lib/fog/bin/serverlove.rb
ns-fog-1.22.8 lib/fog/bin/serverlove.rb
ns-fog-1.22.7 lib/fog/bin/serverlove.rb
ns-fog-1.22.6 lib/fog/bin/serverlove.rb
fog-1.23.0 lib/fog/bin/serverlove.rb
ns-fog-1.22.4 lib/fog/bin/serverlove.rb
ns-fog-1.22.3 lib/fog/bin/serverlove.rb
ns-fog-1.22.2 lib/fog/bin/serverlove.rb
fog-1.22.1 lib/fog/bin/serverlove.rb