Sha256: 50988fb40513ad6260b4f4e03a46252a8d228287e76f9727e2f34806360dde4b

Contents?: true

Size: 334 Bytes

Versions: 36

Compression:

Stored size: 334 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 :slices
        Fog::Slicehost.new(credentials)
      end
    end
    @@connections[service]
  end

end

Version data entries

36 entries across 36 versions & 2 rubygems

Version Path
fog-0.2.30 tests/slicehost/helper.rb
fog-0.2.28 tests/slicehost/helper.rb
fog-0.2.27 tests/slicehost/helper.rb
fog-0.2.26 tests/slicehost/helper.rb
fog-0.2.25 tests/slicehost/helper.rb
fog-0.2.24 tests/slicehost/helper.rb
tecnh-fog-0.2.23.vpc tests/slicehost/helper.rb
fog-0.2.23 tests/slicehost/helper.rb
fog-0.2.22 tests/slicehost/helper.rb
fog-0.2.21 tests/slicehost/helper.rb
fog-0.2.20 tests/slicehost/helper.rb
fog-0.2.19 tests/slicehost/helper.rb
fog-0.2.18 tests/slicehost/helper.rb
fog-0.2.17 tests/slicehost/helper.rb
fog-0.2.16 tests/slicehost/helper.rb
fog-0.2.15 tests/slicehost/helper.rb
fog-0.2.14 tests/slicehost/helper.rb
fog-0.2.13 tests/slicehost/helper.rb
fog-0.2.12 tests/slicehost/helper.rb
fog-0.2.11 tests/slicehost/helper.rb