Sha256: fb73b15817fccf2b4c7e39c601566f7bf08b51584a37069864d82e8de2a6747f
Contents?: true
Size: 496 Bytes
Versions: 6
Compression:
Stored size: 496 Bytes
Contents
class Brightbox < Fog::Bin class << self def class_for(key) case key when :compute Fog::Brightbox::Compute else raise ArgumentError, "Unrecognized service: #{key}" end end def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = class_for(key).new end @@connections[service] end def services [:compute] end def account @@connections[:compute].account end end end
Version data entries
6 entries across 6 versions & 1 rubygems