Sha256: d860d48349715cafe972084adbc997cf5a1f29983cd931a36eee9924d240a365

Contents?: true

Size: 787 Bytes

Versions: 18

Compression:

Stored size: 787 Bytes

Contents

class HP < Fog::Bin
  class << self

    def class_for(key)
      case key
      when :cdn
        Fog::CDN::HP
      when :compute
        Fog::Compute::HP
      when :storage
        Fog::Storage::HP
      else
        raise ArgumentError, "Unrecognized service: #{key}"
      end
    end

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

    def services
      Fog::HP.services
    end

  end
end

Version data entries

18 entries across 18 versions & 8 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/bin/hp.rb
fog-nirvanix-1.8.1 lib/fog/bin/hp.rb
fog-parser-fix-1.6.1 lib/fog/bin/hp.rb
fog-test-again-1.6.0 lib/fog/bin/hp.rb
fog-parser-fix-1.6.0 lib/fog/bin/hp.rb
fog-1.9.0 lib/fog/bin/hp.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/bin/hp.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/bin/hp.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/bin/hp.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/bin/hp.rb
fog-sgonyea-1.8.1 lib/fog/bin/hp.rb
fog-1.8.0 lib/fog/bin/hp.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/bin/hp.rb
fog-1.7.0 lib/fog/bin/hp.rb
fog-1.6.0 lib/fog/bin/hp.rb
fog-1.5.0 lib/fog/bin/hp.rb
rackspace-fog-1.4.2 lib/rackspace-fog/bin/hp.rb
fog-1.4.0 lib/fog/bin/hp.rb