Sha256: b3b1c4891d77ffa16d8a32e5f89aa9c730f03e7032c7c4a8eaea7c7b630641a3
Contents?: true
Size: 838 Bytes
Versions: 4
Compression:
Stored size: 838 Bytes
Contents
class Brightbox < Fog::Bin class << self def class_for(key) case key when :compute Fog::Brightbox::Compute when :storage Fog::Brightbox::Storage else raise ArgumentError, "Unsupported #{self} service: #{key}" end end def [](service) @@connections ||= Hash.new do |hash, key| hash[key] = case key when :compute Fog::Logger.warning("Brightbox[:compute] is not recommended, use Compute[:brightbox] for portability") Fog::Compute.new(:provider => 'Brightbox') else raise ArgumentError, "Unrecognized service: #{key.inspect}" end end @@connections[service] end def account @@connections[:compute].account end def services Fog::Brightbox.services end end end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
fog-2.3.0 | lib/fog/bin/brightbox.rb |
fog-ifeel-2.2.0 | lib/fog/bin/brightbox.rb |
fog-2.2.0 | lib/fog/bin/brightbox.rb |
fog-2.1.0 | lib/fog/bin/brightbox.rb |