Sha256: 9b1170a8148e456f89c45f1fa965d2dd01276269ea8bc35768362e4f4e2d0a8b

Contents?: true

Size: 485 Bytes

Versions: 17

Compression:

Stored size: 485 Bytes

Contents

class RiakCS < Fog::Bin
  class << self
    def class_for(key)
      case key
      when :provisioning
        Fog::RiakCS::Provisioning
      when :usage
        Fog::RiakCS::Usage
      else
        raise ArgumentError, "Unrecognized service: #{key}"
      end
    end

    def [](service)
      @@connections ||= Hash.new do |hash, key|
        hash[key] = class_for(key)
      end
      @@connections[service]
    end

    def services
      Fog::RiakCS.services
    end
  end
end

Version data entries

17 entries across 17 versions & 4 rubygems

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