Sha256: 9c7296f0b7428277bc479792746745b674b8992e18a850100d328612cee5d51d

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

module Slicehost

  def self.[](service)
    @@connections ||= Hash.new do |hash, key|
      credentials = Fog.credentials.reject do |k, v|
        ![:slicehost_password].include?(k)
      end
      hash[key] = case key
      when :compute
        Fog::Slicehost::Compute.new(credentials)
      end
    end
    @@connections[service]
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-0.3.0 tests/slicehost/helper.rb