Sha256: fc4dee7268bba994756381a651a7f5c52cd9362c759a8d18b96b7f192a2c4736

Contents?: true

Size: 487 Bytes

Versions: 36

Compression:

Stored size: 487 Bytes

Contents

module Bluebox

  def self.[](service)
    @@connections ||= Hash.new do |hash, key|
      credentials = Fog.credentials.reject do |k,v|
        ![:bluebox_api_key, :bluebox_customer_id].include?(k)
      end
      hash[key] = case key
      when :blocks
        Fog::Bluebox.new(credentials)
      end
    end
    @@connections[service]
  end

  module Formats

    PRODUCT = {
      'cost'        => Float,
      'description' => String,
      'id'          => String
    }

  end

end

Version data entries

36 entries across 36 versions & 2 rubygems

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