Sha256: fb3bded405e8a2a7d17f6a1859fbeaef793ef92bfc17788b44c6153d66538f12

Contents?: true

Size: 537 Bytes

Versions: 1

Compression:

Stored size: 537 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 :compute
        Fog::Bluebox::Compute.new(credentials)
      end
    end
    @@connections[service]
  end

  module Compute

    module Formats

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

    end

  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

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